This commit is contained in:
Michelle Tilley
2017-05-17 21:08:11 +02:00
parent 5cd0049881
commit 11c1151928

View File

@@ -29,8 +29,8 @@ class PackageTranspilationRegistry {
removeTranspilerConfigForPath (packagePath) {
delete this.configByPackagePath[packagePath]
const packagePathWithSep = packagePath.endsWith(path.sep) ?
path.join(packagePath) : path.join(packagePath) + path.sep;
const packagePathWithSep = packagePath.endsWith(path.sep)
? path.join(packagePath) : path.join(packagePath) + path.sep
Object.keys(this.specByFilePath).forEach(filePath => {
if (path.join(filePath).startsWith(packagePathWithSep)) {
delete this.specByFilePath[filePath]