Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
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) })],
},
],
typescript({
tsconfig: 'tsconfig.json',
compilerOptions: {
- sourceMap: !!isDevelopmentBuild,
+ sourceMap,
},
}),
del({