Skip to content

Commit

Permalink
[CLD-306] Add core js (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
duong-se authored Nov 12, 2019
1 parent 7b0afcc commit 6c8b978
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"browserstack-capabilities": "^0.7.0",
"chromedriver": "^2.43.1",
"concurrently": "^4.1.1",
"core-js": "^3.4.1",
"css-loader": "^3.0.0",
"dotenv": "^8.0.0",
"dotenv-webpack": "^1.7.0",
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/webpack-dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const ResolveTSPathsToWebpackAlias = require('ts-paths-to-webpack-alias')

module.exports = {
context: process.cwd(),
entry: ['@babel/polyfill', './src/core/index.tsx'],
entry: ['@babel/polyfill', 'core-js', './src/core/index.tsx'],
output: {
path: path.join(process.cwd(), 'public', 'dist'),
filename: '[name].[hash].js'
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/webpack-prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const PurgecssLoader = {

module.exports = {
context: process.cwd(),
entry: ['@babel/polyfill', './src/core/index.tsx'],
entry: ['@babel/polyfill', 'core-js', './src/core/index.tsx'],
output: {
path: path.join(process.cwd(), 'public', 'dist'),
filename: '[name].[hash].js'
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2210,6 +2210,11 @@ core-js@^2.5.0, core-js@^2.6.5:
resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.10.tgz#8a5b8391f8cc7013da703411ce5b585706300d7f"
integrity sha512-I39t74+4t+zau64EN1fE5v2W31Adtc/REhzWN+gWRRXg6WH5qAsZm62DHpQ1+Yhe4047T55jvzz7MUqF/dBBlA==

core-js@^3.4.1:
version "3.4.1"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.4.1.tgz#76dd6828412900ab27c8ce0b22e6114d7ce21b18"
integrity sha512-KX/dnuY/J8FtEwbnrzmAjUYgLqtk+cxM86hfG60LGiW3MmltIc2yAmDgBgEkfm0blZhUrdr1Zd84J2Y14mLxzg==

core-util-is@1.0.2, core-util-is@~1.0.0:
version "1.0.2"
resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7"
Expand Down

0 comments on commit 6c8b978

Please sign in to comment.