diff --git a/.gitignore b/.gitignore index 00673e8..e8041b7 100644 --- a/.gitignore +++ b/.gitignore @@ -9,10 +9,13 @@ cache.json *.swp *.swo -# Node (if build tooling is added later) +# Node node_modules/ dist/ *.log +# Build artifacts (source maps) +main.js.map + # Agent state .agent/ diff --git a/esbuild.config.mjs b/esbuild.config.mjs index a41f12f..da556d7 100644 --- a/esbuild.config.mjs +++ b/esbuild.config.mjs @@ -18,7 +18,7 @@ const context = await esbuild.context({ format: 'cjs', target: 'es2022', external, - sourcemap: production ? false : 'inline', + sourcemap: production ? 'linked' : 'inline', treeShaking: true, minify: production, outfile: 'main.js',