diff options
| author | Elizabeth Hunt <me@liz.coffee> | 2026-01-04 20:58:28 -0800 |
|---|---|---|
| committer | Elizabeth Hunt <me@liz.coffee> | 2026-01-04 20:58:28 -0800 |
| commit | acfea7c9e0129168205c374783e7036e5018c9a5 (patch) | |
| tree | c94ca7170552ef59425203c9150f0523cdd514dd /esbuild.config.js | |
| parent | 4dd5994b27bb32d93efacd6d3a42b130f81425df (diff) | |
| download | adelie-acfea7c9e0129168205c374783e7036e5018c9a5.tar.gz adelie-acfea7c9e0129168205c374783e7036e5018c9a5.zip | |
Claude: first attempt at code editor
Diffstat (limited to 'esbuild.config.js')
| -rw-r--r-- | esbuild.config.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/esbuild.config.js b/esbuild.config.js index 4adb86a..9d1c3df 100644 --- a/esbuild.config.js +++ b/esbuild.config.js @@ -10,7 +10,6 @@ const paths = { cssEntry: 'src/css/style.css', componentsHtml: 'src/index.html', demoHtml: '.demo/index.html', - outJs: 'dist/bundle.js', outCss: 'dist/bundle.css', outComponentsHtml: 'dist/index.html', outDemoHtml: 'dist/demo.html', @@ -25,10 +24,13 @@ function buildJavaScript() { return esbuild.build({ entryPoints: [paths.jsEntry], bundle: true, + splitting: true, + format: 'esm', minify: isProduction, sourcemap: true, target: 'es2020', - outfile: paths.outJs, + outdir: paths.distDir, + chunkNames: 'chunks/[name]-[hash]', logLevel: 'info', }); } |
