Do you want to request a feature or report a bug? bug
What is the current behavior?
When setting any dependency with hyphenated name such as html-minifier or react-dom to external, the build is produced with the line (example)
module.exports = react-dom
- operator being applied to two identifiers.
If the current behavior is a bug, please provide the steps to reproduce.
Follow the steps in #4237, except for adding the line
, externals: 'html-minifier under
, target: 'node' in webpack.config.js
What is the expected behavior? Some other kind of reference should be made to the externalized module, so that the build works.
If this is a feature request, what is motivation or use case for changing the behavior?
Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System. Again, see #4237