From acfea7c9e0129168205c374783e7036e5018c9a5 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Sun, 4 Jan 2026 20:58:28 -0800 Subject: Claude: first attempt at code editor --- esbuild.config.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'esbuild.config.js') 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', }); } -- cgit v1.2.3-70-g09d2