survivejs / webpack-book

From apprentice to master (CC BY-NC-ND)
https://survivejs.com/webpack/
2.42k stars 319 forks source link

add a tip for module.noParse #45

Closed crysislinux closed 8 years ago

crysislinux commented 9 years ago

Thanks for your great work.

according to https://webpack.github.io/docs/configuration.html#module-noparse

files in module.noParse should not have call to require or define. I tried with alt-with-addons.min.js (with call to require) and alt.min.js(do not have any call to require).

Error raised when used alt-with-addons.min.js.

Uncaught ReferenceError: require is not defined.

It may be a good idea to show this to reduce confusion.