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] Exclude dependencies from bundle #40

Closed
renanbatel opened this issue Feb 27, 2020 · 1 comment
Closed

[Feature] Exclude dependencies from bundle #40

renanbatel opened this issue Feb 27, 2020 · 1 comment

Comments

@renanbatel
Copy link

Webpack has a externals option that provides a way of excluding dependencies from the bundle, it's useful when you use a library on development, but you don't want it on your bundle because it'll be available on the production environment.

There's this JQuery use case, but it'll be also useful if you plan to support Node, where some dependencies can be available in the runtime environment like we see on serverless platforms.

@evanw evanw closed this as completed in 79136d3 Apr 13, 2020
@evanw
Copy link
Owner

evanw commented Apr 13, 2020

This is now possible with the --external flag. Pass --external:foo to exclude foo from the bundle.

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

2 participants