I’m submitting a feature request
Webpack produces code which throws an error when it encounters
define identifier in source code.
Webpack doesn’t treat
define identifier in any custom way and make no assumptions about it unless it is configured with
AMDModulePlugin (or something like that).
What is the motivation / use case for changing the behavior?
AMD isn’t used widely anymore, most of the code is distributed through npm and is in the format of CommonJS modules. Therefore it does make sense to make AMD support opt-in rather than having it enabled by default.