Skip to content

templates/*/node_modules should be ignored #189

Closed
@AriPerkkio

Description

@AriPerkkio

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

  1. npm create tutorial
  2. cd src/templates/default; npm install
  3. Start dev server
  4. 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'];

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions