Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cjs? #1

Open
yisar opened this issue Jul 9, 2021 · 2 comments
Open

cjs? #1

yisar opened this issue Jul 9, 2021 · 2 comments
Labels
waiting on esbuild An issue in esbuild itself, or an issue that requires a change to esbuild to resolve.

Comments

@yisar
Copy link

yisar commented Jul 9, 2021

wasm-module:D:\Users\changhaozhao\Desktop\132\node_swc\pkg\node_swc_bg.wasm:41:44: error: Top-level await is currently not supported with the "cjs" output format
    41          export const { instance, module } = await loadWasm(wasmModule, imports);
@Tschrock Tschrock added the waiting on esbuild An issue in esbuild itself, or an issue that requires a change to esbuild to resolve. label Nov 23, 2021
@muuvmuuv
Copy link

Having a similar issue:

Building...✘ [ERROR] Top-level await is not available in the configured target environment ("chrome83.0", "ios13.0" + 9 overrides)

    wasm-module:/Users/marvin/Developer/M8FINDER/M8FINDER/node_modules/shiki/dist/onig.wasm:50:44:
      50 │ ... const { instance, module } = await loadWasm(wasmModule, imports);

@benma
Copy link

benma commented Aug 9, 2024

Same issue here. Is there a workaround?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting on esbuild An issue in esbuild itself, or an issue that requires a change to esbuild to resolve.
Projects
None yet
Development

No branches or pull requests

4 participants