Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit c92a5ab

Browse files
committed
fix(compiler): Memory-efficient refactoring
1 parent 389b457 commit c92a5ab

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

compiler/src/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,10 @@ async function getAppRoot(): Promise<string> {
3434
const appRoot = await getAppRoot();
3535
const files = await globby([path.join(appRoot, '**/*.{ts,tsx}')]);
3636
const styleFiles = files.filter(isCSSX);
37-
const importPromises = styleFiles.map(styleFile => import(path.resolve(styleFile)));
38-
await Promise.all(importPromises);
3937

38+
for (let i = 0; i < styleFiles.length; i++) {
39+
await import(path.resolve(styleFiles[i]));
40+
}
4041
for (let i = 0; i < styleFiles.length; i++) {
4142
await createBuildIn();
4243
}

0 commit comments

Comments
 (0)