-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Vue config Externals Array Syntax does not work #4413
New issue
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
Comments
Thanks for submitting this issue! Due to our limited time, we ask you to include a reproduction link to a minimal full reproduction of your problem (for example in a GitHub repository) so we can find what is causing the issue. Thank you for your understanding! |
@sodatea Sure, here's the repro: https://github.com/johannes-z/vue-cli-externals |
@sodatea
|
Version
4.0.0-alpha.5
Environment info
Steps to reproduce
Using a
vue.config.js
like this:What is expected?
All the
config.externals
should be externalized.What is actually happening?
None of the libraries are externalized, because vue-cli (?) changes the
externals
to:This causes the
node_modules\webpack\lib\ExternalModuleFactoryPlugin.js
to ignore theexternals
.I'm not sure if this is caused by the cli or by webpack-chain, but since vue-cli is adding the
vue
property to the object, I'm guessing that it's vue-cli's doing.The text was updated successfully, but these errors were encountered: