Open nhunzaker opened 6 years ago
We hit a nasty issue on a project where the wrong namespace was imported from a module and the JavaScript build failed silently (it warned, but was functionally broken).
Webpack provides a setting to fail compilation if an ES6 module is imported incorrectly: strictExportPresence. Check it out here: https://webpack.js.org/configuration/module/
strictExportPresence
It would be great if we could configure this, even recommend enabling it now that many projects are using ES6 modules. However it looks like this isn't possible when I scanned the webpack configuration code: https://github.com/vigetlabs/blendid/blob/master/gulpfile.js/lib/webpack-multi-config.js#L44-L46
I'm not too familiar with configuring blended, but I think we just need to expose another option to the task config.
We hit a nasty issue on a project where the wrong namespace was imported from a module and the JavaScript build failed silently (it warned, but was functionally broken).
Webpack provides a setting to fail compilation if an ES6 module is imported incorrectly:
strictExportPresence
. Check it out here: https://webpack.js.org/configuration/module/It would be great if we could configure this, even recommend enabling it now that many projects are using ES6 modules. However it looks like this isn't possible when I scanned the webpack configuration code: https://github.com/vigetlabs/blendid/blob/master/gulpfile.js/lib/webpack-multi-config.js#L44-L46
I'm not too familiar with configuring blended, but I think we just need to expose another option to the task config.