Skip to content

Commit 204160f

Browse files
committed
Fix renaming modules when loading sandbox from cache
1 parent 079e514 commit 204160f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/app/src/sandbox/eval/transpiled-module.ts

+3
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ export type SerializedTranspiledModule = {
7272
transpilationDependencies: Array<string>;
7373
transpilationInitiators: Array<string>;
7474
warnings: WarningStructure[];
75+
hasMissingDependencies: boolean;
7576
};
7677

7778
/* eslint-disable no-use-before-define */
@@ -1090,6 +1091,7 @@ export default class TranspiledModule {
10901091
Array.from(this.asyncDependencies).map(m => m.then(x => x.getId()))
10911092
),
10921093
warnings: this.warnings.map(war => war.serialize()),
1094+
hasMissingDependencies: this.hasMissingDependencies,
10931095
};
10941096

10951097
if (!sourceEqualsCompiled || !optimizeForSize) {
@@ -1110,6 +1112,7 @@ export default class TranspiledModule {
11101112
this.emittedAssets = data.emittedAssets;
11111113
this.isEntry = data.isEntry;
11121114
this.isTestFile = data.isTestFile;
1115+
this.hasMissingDependencies = data.hasMissingDependencies;
11131116

11141117
if (data.sourceEqualsCompiled) {
11151118
this.source = new ModuleSource(

0 commit comments

Comments
 (0)