From c13b730dbe75c34eb6ee4391715ca4041011dc93 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sat, 9 Mar 2019 09:16:18 -0800 Subject: [PATCH] tweak babelrc to use runtime helpers for Object.assign --- .babelrc | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.babelrc b/.babelrc index 14f50df..c3452a5 100644 --- a/.babelrc +++ b/.babelrc @@ -3,6 +3,21 @@ "plugins": [ "check-es2015-constants", "transform-object-rest-spread", + "transform-runtime", + [ + "module-resolver", + { + "alias": { + "babel-runtime/core-js/object/get-prototype-of": "./src/polyfills/objectGetPrototypeOf", + "babel-runtime/helpers/extends": "./src/polyfills/extends", + "babel-runtime/helpers/inherits": "./src/polyfills/inherits", + "babel-runtime/helpers/createClass": "./src/polyfills/createClass", + "babel-runtime/helpers/possibleConstructorReturn": "./src/polyfills/possibleConstructorReturn", + "babel-runtime/helpers/classCallCheck": "./src/polyfills/classCallCheck", + "babel-runtime/core-js/object/keys": "./src/polyfills/keys" + } + } + ], [ "transform-define", "scripts/define.js" ] @@ -27,22 +42,7 @@ "transform-es2015-sticky-regex", "transform-es2015-template-literals", "transform-es2015-unicode-regex", - "transform-regenerator", - "transform-runtime", - [ - "module-resolver", - { - "alias": { - "babel-runtime/core-js/object/get-prototype-of": "./src/polyfills/objectGetPrototypeOf", - "babel-runtime/helpers/extends": "./src/polyfills/extends", - "babel-runtime/helpers/inherits": "./src/polyfills/inherits", - "babel-runtime/helpers/createClass": "./src/polyfills/createClass", - "babel-runtime/helpers/possibleConstructorReturn": "./src/polyfills/possibleConstructorReturn", - "babel-runtime/helpers/classCallCheck": "./src/polyfills/classCallCheck", - "babel-runtime/core-js/object/keys": "./src/polyfills/keys" - } - } - ] + "transform-regenerator" ] }, "legacy-cjs": {