Exclude node_modules from the compile directories #1318

Closed
opened 2025-08-09 17:19:40 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @gary-holland on 10/13/2016

I'm getting compile issues when packages (specifically the "protractor" package) loading into the node_modules directory have .aspx files within them. Also, there is no need for the compiler to be scanning the node_modules directory for every rebuild.

Can you modify the project.json file to exclude this directory. The following works for me:

"buildOptions": {
"emitEntryPoint": true,
"preserveCompilationContext": true,
"compile": {
"exclude": [ "node_modules" ]
}
},

Thanks.

*Originally created by @gary-holland on 10/13/2016* I'm getting compile issues when packages (specifically the "protractor" package) loading into the node_modules directory have .aspx files within them. Also, there is no need for the compiler to be scanning the node_modules directory for every rebuild. Can you modify the project.json file to exclude this directory. The following works for me: "buildOptions": { "emitEntryPoint": true, "preserveCompilationContext": true, "compile": { "exclude": [ "node_modules" ] } }, Thanks.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1318
No description provided.