Replies: 1 comment 3 replies
-
|
Hello @FongHou, You can find the documentation on bundling here: |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem? Please describe.
nbb bundle use a top level 'await loadString(...)' in output .mjs file. esbuild currently does'nt support top leve await. I tried command
npx esbuild --bundle ink_demo.mjs --outfile=ink_demo1.mjs --platform=node --target=node16 --format=esm, but runningnode ink_demo1.mjsgave error likeDescribe the solution you'd like
It'd be nice if nbb bundle has an optional not to use top level await.
Describe alternatives you've considered
I tried manually remove await in front of loadString from nbb bundle's output ink_demo.mjs. Then use command
npx esbuild --bundle ink_demo.mjs --outfile=ink_demo1.js --platform=node --target=node16(note that esbuild output uses cjs module this time).node ink_demo1.jsdoes work.Additional context
Add any other context or screenshots about the feature request here.
Beta Was this translation helpful? Give feedback.
All reactions