diff --git a/packages/sandpack-core/src/manager.ts b/packages/sandpack-core/src/manager.ts index 3f3bba733dc..7230fcfa195 100644 --- a/packages/sandpack-core/src/manager.ts +++ b/packages/sandpack-core/src/manager.ts @@ -626,11 +626,11 @@ export default class Manager implements IEvaluator { } verifyTreeTranspiled() { - return Promise.all( - this.getTranspiledModules() - .filter(tModule => tModule.shouldTranspile()) - .map(tModule => tModule.transpile(this)) - ); + const promises: Promise[] = []; + for (const tModule of this.getTranspiledModules()) { + promises.push(tModule.transpile(this)); + } + return Promise.all(promises); } clearCompiledCache() {