Skip to content

Commit 284df8d

Browse files
fix validate build script
1 parent 828fdb1 commit 284df8d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/test/validate-build.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,10 @@ async function validateModuleTreeshake(opts: BuildOptions, moduleName: string, e
366366
},
367367
load(id) {
368368
if (id === '@stencil/core/internal/app-globals') {
369-
return 'export const globalScripts = () => {};';
369+
return [
370+
'export const globalScripts = () => {};',
371+
'export const globalStyles = "";',
372+
].join('\n');
370373
}
371374
if (id === virtualInputId) {
372375
return `import "${entryId}";`;

0 commit comments

Comments
 (0)