diff --git a/angular.json b/angular.json index f2f5a7e70..15f6a3062 100644 --- a/angular.json +++ b/angular.json @@ -19,7 +19,8 @@ "allowedCommonJsDependencies": [ "angular-slickgrid", "jquery-ui-dist/jquery-ui", - "excel-builder-webpacker" + "excel-builder-webpacker", + "stream" ], "assets": [ "src/assets", diff --git a/package.json b/package.json index b037f1972..9bd6e853c 100644 --- a/package.json +++ b/package.json @@ -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" } -} \ No newline at end of file +} diff --git a/src/polyfills.ts b/src/polyfills.ts index 71c74e185..bc274780c 100644 --- a/src/polyfills.ts +++ b/src/polyfills.ts @@ -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 diff --git a/tsconfig.app.json b/tsconfig.app.json index 050a1cbf4..ab1179ef2 100644 --- a/tsconfig.app.json +++ b/tsconfig.app.json @@ -1,5 +1,5 @@ { - "extends": "../tsconfig.json", + "extends": "./tsconfig.json", "compilerOptions": { "allowSyntheticDefaultImports": true, "outDir": "../out-tsc/app", @@ -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" diff --git a/tsconfig.json b/tsconfig.json index 6e2803c28..4b970ac67 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -28,7 +28,8 @@ "paths": { "jszip": [ "node_modules/jszip/dist/jszip.min.js" - ] + ], + "stream": [ "./node_modules/stream-browserify" ] }, "strict": true },