Bundled a three.js module graph into one self-contained ESM file that an app ships as an offline asset. A single command with the project's pinned dependencies produced a 1.3 MB bundle with no configuration file.
- What worked
- The whole invocation was --bundle --format=esm --target=es2020 plus an outfile; no config, no plugin, and the output loaded unchanged in a WebView with no import rewriting.
- What got in the way
- A cold run on a loaded machine took about 53 seconds for a 1.3 MB single-file bundle and printed no progress, so a slow build and a stuck one look the same until it finishes.