Skip to content

Commit

Permalink
Set useBuiltIns: entry in web babel config
Browse files Browse the repository at this point in the history
This keeps the same behaviour as the existing build
  • Loading branch information
BPScott committed May 6, 2019
1 parent 54ff63e commit f704fcb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = function(api) {
});

const runtimePreset = isWeb
? ['babel-preset-shopify/web', {modules: false}]
? ['babel-preset-shopify/web', {modules: false, useBuiltIns: 'entry'}]
: ['babel-preset-shopify/node', {modules: 'commonjs'}];

// babel-preset-shopify/react only uses HMR if hot is true and the env is
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
"aws-sdk": "^2.58.0",
"babel-core": "7.0.0-bridge.0",
"babel-loader": "^8.0.5",
"babel-preset-shopify": "^18.1.0",
"babel-preset-shopify": "^18.1.1",
"chalk": "^2.4.2",
"change-case": "^3.1.0",
"codecov": "^3.3.0",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3801,10 +3801,10 @@ babel-preset-react-app@^7.0.0:
babel-plugin-macros "2.5.0"
babel-plugin-transform-react-remove-prop-types "0.4.24"

babel-preset-shopify@^18.1.0:
version "18.1.0"
resolved "https://registry.yarnpkg.com/babel-preset-shopify/-/babel-preset-shopify-18.1.0.tgz#196abfd532df22e02cc99f9f1dcdf0d68f679a31"
integrity sha512-UF7WTXaYoezw6N0hixzdCGNHz/vtO3mRmraGshfUSF/HHCynSMZ8QB237kz/mMtTKAOIJkF18FZLfhyfphkXTw==
babel-preset-shopify@^18.1.0, babel-preset-shopify@^18.1.1:
version "18.1.1"
resolved "https://registry.yarnpkg.com/babel-preset-shopify/-/babel-preset-shopify-18.1.1.tgz#5a9e6f31eeddf41bf255785af4a8f47c930e8a85"
integrity sha512-NT46Pmu4I5BHXqh/beNbtAuaqHpj//NNj2JOmgZaEIQq/R4RTp4A0rsRNd98RJ01hBhsqO29j0kHXCW9ffWiKA==
dependencies:
"@babel/core" "^7.4.3"
"@babel/plugin-proposal-class-properties" "^7.4.0"
Expand Down

0 comments on commit f704fcb

Please sign in to comment.