Skip to content

Commit 91c9249

Browse files
authored
[esm-integration] Shorten default export pattern. (#24004)
1 parent 109dd7a commit 91c9249

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tools/link.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -2116,8 +2116,7 @@ def create_esm_wrapper(wrapper_file, support_target, wasm_target):
21162116
if wasm_exports:
21172117
wrapper.append(f"export {{ {wasm_exports} }} from './{settings.WASM_BINARY_FILE}';")
21182118
support_url = f'./{os.path.basename(support_target)}'
2119-
wrapper.append(f"import init from '{support_url}';")
2120-
wrapper.append('export default init;')
2119+
wrapper.append(f"export {{ default }} from '{support_url}';")
21212120
write_file(wrapper_file, '\n'.join(wrapper) + '\n')
21222121

21232122
# FIXME(sbc): This is a huge hack to rename the imports in the

0 commit comments

Comments
 (0)