Skip to content

Slow run with large (unused) node_modules folder #763

@ToshB

Description

@ToshB

I have an issue where t2 run spends a long time to start up, it might be related to indexing of node_modules folder before build.

I started with the t2 init project, and ran t2 run index.js. It used around 14 secs to build, deploy and run the project.

I then added the following dev-dependencies:

"babel-cli": "^6.9.0",    
"babel-preset-es2015": "^6.9.0",
"babelify": "^7.3.0",
"eslint": "^2.11.1",

Without any other changes, the command t2 run index.js now used 40 secs to complete. I checked the files on the device, and the only files transferred was the index.js and package.json, as expected.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions