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
- Start dev server
- Preview fails to load
Expected behavior
node_modules should be excluded by default.
Screenshots
Platform
- TutorialKit version: 0.1.1
Additional
|
export const IGNORED_FILES = ['**/.DS_Store', '**/*.swp']; |