Skip to content

How to build into a single ESM module for offline use? #4892

Answered by Aworldc
datvm asked this question in Q&A
Discussion options

You must be logged in to vote

try using esbuild with the following options:

$ esbuild --bundle --minify --format=esm --outfile=bundle.js "path/to/all.js"

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@datvm
Comment options

@datvm
Comment options

@Aworldc
Comment options

Answer selected by datvm
Comment options

You must be logged in to vote
2 replies
@datvm
Comment options

@datvm
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants