Skip to content

Commit e1a5fce

Browse files
committed
fix: Generate synchronous importmap artifact
1 parent fc52230 commit e1a5fce

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: scripts/build-web.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ const importmap = {
2525

2626
fs.writeFileSync(path.join(dirname, "..", "dist", "importmap.json"), `${JSON.stringify(importmap, null, 2)}
2727
`);
28-
fs.writeFileSync(path.join(dirname, "..", "dist", "importmap.js"), `export const importmap = ${JSON.stringify(importmap, null, 2)}
29-
export default importmap;
28+
fs.writeFileSync(path.join(dirname, "..", "dist", "importmap.js"), `var ASC_IMPORTMAP = ${JSON.stringify(importmap, null, 2)};
3029
`);
3130
fs.writeFileSync(path.join(dirname, "..", "dist", "web.html"), `<script async src="https://cdn.jsdelivr.net/npm/es-module-shims@1/dist/es-module-shims.js"></script>
3231
<script type="importmap">

0 commit comments

Comments
 (0)