Webpack fails silently when named import doesn't exist
问题 When I try to import a named import, it fails silently if the name import does not exist. Is there a way to get webpack to fail loudly when it cannot find the import at build time For example: // file1.js const var1 = 'var1' export { var1 } and // file2.js import { var2 } from './file1' // at this point, var2 is undefined at runtime because it was never exported from file1.js Instead, I want it to fail at build time. Is there a webpack option or some other technique I can use to catch this