Skip to content

Commit

Permalink
chore: fix prod build issues encountered after moving tconfig files
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding committed Jun 5, 2021
1 parent 4787028 commit fd964ae
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
3 changes: 2 additions & 1 deletion angular.json
Expand Up @@ -19,7 +19,8 @@
"allowedCommonJsDependencies": [
"angular-slickgrid",
"jquery-ui-dist/jquery-ui",
"excel-builder-webpacker"
"excel-builder-webpacker",
"stream"
],
"assets": [
"src/assets",
Expand Down
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -175,10 +175,11 @@
"run-sequence": "^2.2.1",
"sass": "~1.32.13",
"standard-version": "^9.3.0",
"stream-browserify": "^3.0.0",
"ts-node": "^10.0.0",
"tslib": "^2.2.0",
"typescript": "~4.2.4",
"yargs": "^17.0.1",
"zone.js": "~0.11.4"
}
}
}
4 changes: 2 additions & 2 deletions src/polyfills.ts
Expand Up @@ -20,13 +20,13 @@


/** IE11 was throwing console errors without these (cannot find "includes") */
import 'core-js/es7/array';
// import 'core-js/es7/array';

/** IE10 and IE11 requires the following for NgClass support on SVG elements */
// import 'classlist.js'; // Run `npm install --save classlist.js`.

/** Evergreen browsers require these. **/
import 'core-js/es6/reflect';
// import 'core-js/es6/reflect';

/** Support Custom Event */
import 'custom-event-polyfill'; // npm install custom-event-polyfill
Expand Down
9 changes: 5 additions & 4 deletions tsconfig.app.json
@@ -1,5 +1,5 @@
{
"extends": "../tsconfig.json",
"extends": "./tsconfig.json",
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"outDir": "../out-tsc/app",
Expand All @@ -11,12 +11,13 @@
"paths": {
"jszip": [
"../node_modules/jszip/dist/jszip.min.js"
]
],
"stream": [ "./node_modules/stream-browserify" ]
}
},
"files": [
"main.ts",
"polyfills.ts"
"src/main.ts",
"src/polyfills.ts"
],
"include": [
"src/**/*.d.ts"
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Expand Up @@ -28,7 +28,8 @@
"paths": {
"jszip": [
"node_modules/jszip/dist/jszip.min.js"
]
],
"stream": [ "./node_modules/stream-browserify" ]
},
"strict": true
},
Expand Down

0 comments on commit fd964ae

Please sign in to comment.