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

Exclude certain files from bundling #415

Closed
faustbrian opened this issue Sep 21, 2021 · 1 comment
Closed

Exclude certain files from bundling #415

faustbrian opened this issue Sep 21, 2021 · 1 comment

Comments

@faustbrian
Copy link

Hey, is it possible to exclude certain files from the bundling process? Couldn't find any configuration but maybe I'm overlooking it.

My use-case would be to ignore all source/**/*.test.ts files when bundling as they are currently included in the tarball for the npm registry.

@egoist
Copy link
Owner

egoist commented Nov 25, 2021

You can use the external option:

external?: (string | RegExp)[]

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