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

feat(scripts): Add custom auto-external configurer for rollup #9295

Merged
merged 1 commit into from
Jun 4, 2021

Conversation

vigneshm
Copy link
Contributor

@vigneshm vigneshm commented Jun 4, 2021

The existing rollup plugin rollup-plugin-auto-external does not handle imports with path in them such as bootstrap/dist/js/bootstrap. So creating a simple external configurer that handles such scenarios along with handling scoped packages. This configurer uses the passed in dependencies map and accurately marks npm imports as externals.

@vigneshm vigneshm marked this pull request as draft June 4, 2021 22:53
The existing rollup plugin `rollup-plugin-auto-external` does not handle imports with path in them
such as `bootstrap/dist/js/bootstrap`. So creating a simple external configurer that handles such
scenarios along with handling scoped packages. This configurer uses the passed in dependencies map
and accurately marks npm imports as externals.
@vigneshm vigneshm force-pushed the rollup-externals branch from b50c9f8 to c0f30c9 Compare June 4, 2021 22:58
@vigneshm vigneshm changed the title feat(build): Add custom rollup config for core feat(scripts): Add custom auto-external configurer for rollup Jun 4, 2021
@vigneshm vigneshm marked this pull request as ready for review June 4, 2021 22:59
@christopherthielen
Copy link
Contributor

I'd like to chat about this, mostly so I understand why this is needed

@vigneshm vigneshm merged commit 34f5eb3 into spinnaker:master Jun 4, 2021
@vigneshm vigneshm deleted the rollup-externals branch June 4, 2021 23:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants