Skip to content
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

[Feature Request] ensure consistent output structure of input modules while using preserveModules #3785

Closed
davidroeca opened this issue Sep 17, 2020 · 1 comment

Comments

@davidroeca
Copy link
Contributor

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:

  • Provide users a way to restructure/rename output directories as outlined in Why does the preserveModules option generate node_modules folder #3684
  • 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.
@davidroeca
Copy link
Contributor Author

Closed via #3786

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant