Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What this pull request does
This pull request enables the consumer to configure the list of external rollup module IDs. Any value set to the
external
configuration property overrides the inherited rollupexternal
option with the value provided.What this pull request contains
Further notes
My use case is creating a library with an inlined webworker to be used by downstream projects on different platforms. To achieve this, the bundled webworker needs to contain all transpiled imports, as downstream bundlers will not be able to package additional dependencies into the blob. By setting the newly introduced property
external: []
, I can instruct rollup to consider no imports as external and bundle them into the worker blob. Which I can then savely distribute as functional part of my library.Let me know what You think! 🎈