-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
preserveModules creates wrong output #3743
Copy link
Copy link
Closed
Description
- Rollup Version:
^2.26.4 - Operating System (or Browser): Ubuntu 1804
- Node Version (if applicable):
10.19.0 - Link to reproduction (IMPORTANT, read below): https://repl.it/repls/KindlyHospitableDataset
Expected Behavior
The emitted lib folder should look like this:
main.jsHelloWorld.vue_rollup-plugin....jsHelloWorld.vue.js
Actual Behavior
The emitted lib folder looks like this:
node_modules/srcHelloWorld.vue_rollup-plugin....jsHelloWorld.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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels