Skip to content

Commit

Permalink
feat: complete Edge support
Browse files Browse the repository at this point in the history
  • Loading branch information
timbru31 committed Aug 7, 2019
1 parent c9aba94 commit 4a8f084
Show file tree
Hide file tree
Showing 5 changed files with 1,091 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -6,6 +6,7 @@
"scripts": {
"build:dev": "webpack --mode=development --watch",
"build:prod": "webpack --mode=production",
"postbuild:prod": "ts-node scripts/patch-strict-mode.ts",
"tslint": "tslint -p tsconfig.json '{src,test}/**/*.ts'",
"stylelint": "stylelint 'src/**/*.css' --allow-empty-input",
"lint": "npm run tslint && npm run stylelint",
Expand Down
6 changes: 6 additions & 0 deletions scripts/patch-strict-mode.ts
@@ -0,0 +1,6 @@
// tslint:disable:no-implicit-dependencies
import { readFileSync, writeFileSync } from 'fs';

let data = readFileSync('./dist/browser-polyfill.min.js', { encoding: 'utf-8' });
data = data.replace('"use strict";', '');
writeFileSync('./dist/browser-polyfill.min.js', data);

0 comments on commit 4a8f084

Please sign in to comment.