Skip to content

Commit

Permalink
feat(client): introduce core-js
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroppy committed Jun 1, 2019
1 parent 03c2751 commit ddfff11
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions client-src/default/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

/* global __resourceQuery WorkerGlobalScope self */
/* eslint prefer-destructuring: off */
require('./polyfill');
const querystring = require('querystring');
const url = require('url');
const stripAnsi = require('strip-ansi');
Expand Down
4 changes: 4 additions & 0 deletions client-src/default/polyfill.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
'use strict';

require('core-js/features/string/includes');
require('core-js/features/array/includes');
7 changes: 6 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"chokidar": "^2.1.6",
"compression": "^1.7.4",
"connect-history-api-fallback": "^1.6.0",
"core-js": "^3.1.3",
"debug": "^4.1.1",
"del": "^4.1.1",
"express": "^4.17.1",
Expand Down
2 changes: 1 addition & 1 deletion test/__snapshots__/Routes.test.js.snap

Large diffs are not rendered by default.

0 comments on commit ddfff11

Please sign in to comment.