mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
We don't want no node_modules
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user