diff --git a/js/transpiler/transpiler.js b/js/transpiler/transpiler.js index 9ecc7d9832..d7abca88e3 100644 --- a/js/transpiler/transpiler.js +++ b/js/transpiler/transpiler.js @@ -73,9 +73,7 @@ class Transpiler { } let files = allFiles.filter(file => this.#isToBeTranspiled(file)); - - let otherFiles = !this.file ? - allFiles.filter(file => !files.includes(file)) : []; + let otherFiles = allFiles.filter(file => !files.includes(file)); files.forEach(file => this.#processFile(file)); otherFiles.forEach(file => this.#copyFile(file));