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
preserveModules creates wrong output #3743
Comments
The answer is simple: There are several files from |
Shouldn't marking those |
Hmm, I thought ids were passed twice through
did the trick. Or if you do it via a function
and last via regular expression
|
Fix for the |
Thanks! Seems to work for me now. |
Just in case someone (like me) finds this topic first. In a monorepo it may help to also add See: rollup/plugins#321 |
^2.26.4
10.19.0
Expected Behavior
The emitted
lib
folder should look like this:main.js
HelloWorld.vue_rollup-plugin....js
HelloWorld.vue.js
Actual Behavior
The emitted
lib
folder looks like this:node_modules/
src
HelloWorld.vue_rollup-plugin....js
HelloWorld.vue.js
main.js
The plugins resolve and commonjs do nothing to remedy this, also adding those libraries added to node_modules to externals does nothing.
Additional
In a monorepo, all the files within
lib
are also under the path the monorepo is under, i.e. if the package is in/my-project/packages/my-package
, the output will look like this./my-project/packages/my-package/lib/package/my-package/main.js
The text was updated successfully, but these errors were encountered: