Fix prod builder

This commit is contained in:
2026-03-23 22:20:57 +01:00
parent d24242d3e4
commit 5e578a292a
9 changed files with 60 additions and 25 deletions
+2 -2
View File
@@ -13,8 +13,8 @@
"sw-generate": "workbox generateSW workbox-config.js",
"sw-uglify": "uglifyjs build/sw.js -o build/sw.min.js",
"sw": "npm run sw-generate && npm run sw-uglify",
"ts": "tsc --rootDir src/ts --outDir src/scripts --pretty",
"ts-tools": "tsc --rootDir src/ts --outDir src/scripts --pretty -p tsconfig.tools.json",
"ts": "tsc",
"ts-tools": "tsc -p tsconfig.tools.json",
"ts-watch": "npm run ts -- --watch",
"ts-cov": "npm run ts -- --target es5",
"ts-cov-watch": "npm run ts -- --target es5 --watch",
@@ -42,12 +42,11 @@ export function rollbarFactory() {
}
@Injectable()
export class RollbarErrorHandler extends ErrorHandler {
constructor(private injector: Injector) {
super();
}
export class RollbarErrorHandler implements ErrorHandler {
private errorHandler = new ErrorHandler();
constructor(private injector: Injector) {}
handleError(error: any) {
super.handleError(error);
this.errorHandler.handleError(error);
if (!DEVELOPMENT && rollbarConfig.accessToken) {
const rollbar = this.injector.get(RollbarService);
+20
View File
@@ -0,0 +1,20 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"target": "es5",
"module": "es2015",
"baseUrl": ".",
"preserveConstEnums": false,
"paths": {
"lodash": ["src/ts/lodash.ts"]
}
},
"files": [
"src/ts/bootstrap-admin.ts"
],
"angularCompilerOptions": {
"genDir": "src/ts",
"skipMetadataEmit": true,
"preserveWhitespaces": true
}
}
Regular → Executable
View File
+20
View File
@@ -0,0 +1,20 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"target": "es5",
"module": "es2015",
"baseUrl": ".",
"preserveConstEnums": false,
"paths": {
"lodash": ["src/ts/lodash.ts"]
}
},
"files": [
"src/ts/bootstrap-tools.ts"
],
"angularCompilerOptions": {
"genDir": "src/ts",
"skipMetadataEmit": true,
"preserveWhitespaces": true
}
}
Regular → Executable
+2 -9
View File
@@ -9,15 +9,8 @@
"lodash": ["src/ts/lodash.ts"]
}
},
"exclude": [
"build",
"tools",
"src/scripts",
"src/ts/server",
"src/ts/tests",
"src/ts/tools",
"src/ts/experiments",
"node_modules"
"files": [
"src/ts/bootstrap.ts"
],
"angularCompilerOptions": {
"genDir": "src/ts",
Regular → Executable
+7 -4
View File
@@ -1,10 +1,13 @@
{
"compilerOptions": {
"target": "es2017",
"target": "ES2020",
"lib": [
"dom",
"es6"
"ES2020"
],
"rootDir": "src/ts",
"outDir": "src/scripts",
"pretty": true,
"module": "commonjs",
"moduleResolution": "node",
"importHelpers": true,
@@ -18,8 +21,8 @@
"strict": true,
"strictFunctionTypes": true,
"sourceMap": true,
"skipLibCheck": true,
"preserveConstEnums": true
"preserveConstEnums": true,
"skipLibCheck": true
},
"exclude": [
"build",
Regular → Executable
View File
+1 -1
View File
@@ -62,7 +62,7 @@ module.exports = (args = {}) =>
},
output: Object.assign({}, common.output, {
filename: '[name]-[chunkhash:10].js',
path: path.resolve(__dirname, 'dist', 'browser' , outDir, 'scripts'),
path: path.resolve(__dirname, 'build', outDir, 'scripts'),
}),
devtool: script === 'bootstrap' ? 'source-map' : false,
module: {