We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What is the current behavior?
Having an array as property value for the externals object, despite being documented at https://webpack.js.org/configuration/externals/#array, fails with Invalid configuration object.
externals
Invalid configuration object
module.exports = { //... externals: { subtract: ['./math', 'subtract'] } };
If the current behavior is a bug, please provide the steps to reproduce.
npm install --save-dev webpack@4.19.0 webpack-cli@3.1.0 mkdir src touch src/index.js echo " module.exports = { mode: 'production', externals: { subtract: ['./math', 'subtract'] } };" > webpack.config.js node_modules/.bin/webpack
What is the expected behavior?
Webpack respects the configuration and looks up the subtract submodule of math.
Other relevant information: webpack version: 4.19.0 Node.js version: v10.0.9 Operating System: macOS 10.13.6 Additional tools: none
The text was updated successfully, but these errors were encountered:
Seems like the schema is to strict here.
Please send a PR to allow arrays of strings here too:
webpack/schemas/WebpackOptions.json
Lines 117 to 130 in 2f78aae
Sorry, something went wrong.
@sokra Thanks, PR in #8043.
Successfully merging a pull request may close this issue.
Bug report
What is the current behavior?
Having an array as property value for the
externals
object, despite being documented at https://webpack.js.org/configuration/externals/#array, fails withInvalid configuration object
.If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
Webpack respects the configuration and looks up the subtract submodule of math.
Other relevant information:
webpack version: 4.19.0
Node.js version: v10.0.9
Operating System: macOS 10.13.6
Additional tools: none
The text was updated successfully, but these errors were encountered: