const isDevelopmentBuild = process.env.BUILD === 'development';
const isAnalyzeBuild = process.env.ANALYZE;
+const sourceMap = !!isDevelopmentBuild;
export default {
input: ['src/start.ts', 'src/charging-station/ChargingStationWorker.ts'],
{
dir: 'dist',
format: 'esm',
- sourcemap: !!isDevelopmentBuild,
+ sourcemap: sourceMap,
plugins: [terser({ maxWorkers: Math.floor(availableParallelism() / 2) })],
},
],
'node:events',
'node:fs',
'node:http',
+ 'node:http2',
'node:path',
'node:perf_hooks',
'node:stream',
typescript({
tsconfig: 'tsconfig.json',
compilerOptions: {
- sourceMap: !!isDevelopmentBuild,
+ sourceMap,
},
}),
del({