scalajs-bundler
scalajs-bundler copied to clipboard
Minor error in example common.webpack.config.js
The example common.webpack.config.js file from https://scalacenter.github.io/scalajs-bundler/cookbook.html#global-namespace contains a minor error that can cause problems when an npm module name contains a hyphen:
Please replace test: require.resolve(modName)
with test: require.resolve(globalModules[modName])
.
That way you can use a name on the left side that does not contain a hyphen, which results in invalid code.