We don't want no node_modules

This commit is contained in:
Michelle Tilley
2016-10-31 16:53:24 -07:00
parent 1bc1b49f84
commit 5c885e6947
2 changed files with 8 additions and 0 deletions

View File

@@ -65,6 +65,11 @@ Object.assign(PackageTranspilationRegistry.prototype, {
getPackageTranspilerSpecForFilePath: function (filePath) {
if (this.specByFilePath[filePath] !== undefined) return this.specByFilePath[filePath]
// ignore node_modules
if (filePath.indexOf(path.sep + 'node_modules' + path.sep) > -1) {
return false
}
var config = null
var spec = null
var thisPath = filePath