-
Notifications
You must be signed in to change notification settings - Fork 64
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
templates/*/node_modules
should be ignored
#189
Comments
template/*/node_modules
should be ignoredtemplates/*/node_modules
should be ignored
Though it's completely valid use case to add pre-optimized To get the best user experience here, we should ignore template:
name: my-template
ignoredFiles: [] # Defaults to '**/node_modules**/', [] makes node_modules included |
So far I've tried two approaches:
More users are now running into this so we should publish a release with quick fix as soon as possible. I think I'll make |
thanks |
Describe the bug
If template's
node_modules
is present, these are copied to webcontainer. This can easily lead into copying 10s of megabytes of content. Also platform specific modules will not work as they are not using wasm builds of native modules.Steps to reproduce
npm create tutorial
cd src/templates/default; npm install
Expected behavior
node_modules
should be excluded by default.Screenshots
Platform
Additional
tutorialkit/packages/astro/src/webcontainer-files/constants.ts
Line 1 in d21d5e9
The text was updated successfully, but these errors were encountered: