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
While using preserveModules in combination with plugins such as @rollup/plugin-node-resolve and @rollup/plugin-commonjs, the directory structure of an input module may change based on related modules that get bundled alongside the input module.
Let users specify a moduleRootDir that should be mirrored in the output dir while using preserveModules. In other words, if the input is src/index.js and the output dir is dist/ and moduleRootDir is src/, then the module src/module.js should be placed in dist/module.js.
The text was updated successfully, but these errors were encountered:
Feature Use Case
While using
preserveModules
in combination with plugins such as@rollup/plugin-node-resolve
and@rollup/plugin-commonjs
, the directory structure of an input module may change based on related modules that get bundled alongside the input module.Note the odd behavior here: https://github.com/davidroeca/rollup-preserveModules-dir-issue
Feature Proposal
One or more of the following:
preserveModules
option generatenode_modules
folder #3684moduleRootDir
that should be mirrored in the outputdir
while usingpreserveModules
. In other words, if theinput
issrc/index.js
and the outputdir
isdist/
andmoduleRootDir
issrc/
, then the modulesrc/module.js
should be placed indist/module.js
.The text was updated successfully, but these errors were encountered: