You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expect to see the following files:
dist/vue-cli-scoped-lib-bug.common.js;
dist/vue-cli-scoped-lib-bug.css;
dist/vue-cli-scoped-lib-bug.umd.js;
dist/demo.html
What is actually happening?
I see the following files:
dist/@test/vue-cli-scoped-lib-bug.common.js;
dist/@test/vue-cli-scoped-lib-bug.css;
dist/@test/vue-cli-scoped-lib-bug.umd.js;
dist/demo.html
The proposed fix would be in file resolveLibConfig.js line 27. Just change "filename = filename || libName" to "filename = filename || libName.replace(/^@. //, '')" to strip the scope in case the package name is used as the filename prefix.
The text was updated successfully, but these errors were encountered:
FYI: It seems as the WC mode has the same issue. I will look into it and provide a PR for that as well this weekend, after getting the unit tests to work. Sorry that I haven't checked it earlier.
Version
3.9.3
Reproduction link
https://github.com/MewesK/vue-cli-scoped-lib-bug
Environment info
Steps to reproduce
Run "npm run build" and look at the "dist" folder
What is expected?
I expect to see the following files:
dist/vue-cli-scoped-lib-bug.common.js;
dist/vue-cli-scoped-lib-bug.css;
dist/vue-cli-scoped-lib-bug.umd.js;
dist/demo.html
What is actually happening?
I see the following files:
dist/@test/vue-cli-scoped-lib-bug.common.js;
dist/@test/vue-cli-scoped-lib-bug.css;
dist/@test/vue-cli-scoped-lib-bug.umd.js;
dist/demo.html
The proposed fix would be in file resolveLibConfig.js line 27. Just change "filename = filename || libName" to "filename = filename || libName.replace(/^@. //, '')" to strip the scope in case the package name is used as the filename prefix.
The text was updated successfully, but these errors were encountered: