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

bundle inline dependencies #263

Closed
1 task
pi0 opened this issue Dec 13, 2024 · 2 comments
Closed
1 task

bundle inline dependencies #263

pi0 opened this issue Dec 13, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@pi0
Copy link
Member

pi0 commented Dec 13, 2024

Describe the feature

Context: nuxt/module-builder#445

Sometimes, devDependencies are not published as they are only used locally. It would be a nice feature to inline the imports of those dependencies, so those do not have to be inlined manually (meaning, the import of the package is removed and the function is written directly into the file).

Additional information

  • Would you be willing to help implement this feature?
@pi0 pi0 added the enhancement New feature or request label Dec 13, 2024
@pi0
Copy link
Member Author

pi0 commented Dec 13, 2024

mkdist if file-by-file transformer (not bundler). an additional (rollup) entry needed for this. There are alternatives such as conditional exports. (nuxt/module-builder#445 (comment))

--

Closing issue as it lacks context (ie: why this might be needed? how commonly this is needed that makes sense to be a mkdist feature desipe it is not what it should do).

Happy to reopen and discuss if there was more context.

@danielroe
Copy link
Member

Info as far as I know is that the devDependency @s1gr1d mentioned is not published to npm

(I think getsentry/sentry-javascript#14680 is the PR in question)

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

No branches or pull requests

2 participants