From 85c0a8bc0179d407157c1f0ad7a7fe38c46ab7a4 Mon Sep 17 00:00:00 2001 From: Jongmoon Yoon Date: Wed, 2 Jan 2019 17:52:16 +0900 Subject: [PATCH] chore(env): bundle promise polyfill - Change the babel plugin to es6-promise-esm - it uses import instead of require Ref #272 --- .babelrc | 2 +- package-lock.json | 6 +++--- package.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.babelrc b/.babelrc index a4500c5f0..8cc4b3cfe 100644 --- a/.babelrc +++ b/.babelrc @@ -16,7 +16,7 @@ "transform-es3-property-literals", "transform-es3-member-expression-literals", "transform-object-assign", - "es6-promise" + "es6-promise-esm" ] } diff --git a/package-lock.json b/package-lock.json index 930a9c649..27525d061 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4700,10 +4700,10 @@ "babel-runtime": "^6.22.0" } }, - "babel-plugin-es6-promise": { + "babel-plugin-es6-promise-esm": { "version": "1.1.1", - "resolved": "https://registry.npmjs.org/babel-plugin-es6-promise/-/babel-plugin-es6-promise-1.1.1.tgz", - "integrity": "sha1-AgLwkpcF8v3N2o/9EiIkbCy51q4=", + "resolved": "https://registry.npmjs.org/babel-plugin-es6-promise-esm/-/babel-plugin-es6-promise-esm-1.1.1.tgz", + "integrity": "sha512-CuFSbPhrYdTo8LrGei5p5sloOr+wiOS3C6ZmZTT5GiitOaDlpt7wjdnJS4XODozxigClSZqE+Tvep1XRIEfNyw==", "dev": true, "requires": { "babel-template": "^6.7.0", diff --git a/package.json b/package.json index 02bc5cdde..b414e4d98 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,7 @@ "babel-eslint": "^10.0.1", "babel-loader": "^8.0.4", "babel-plugin-add-module-exports": "^0.2.1", - "babel-plugin-es6-promise": "^1.1.1", + "babel-plugin-es6-promise-esm": "^1.1.1", "babel-plugin-no-side-effect-class-properties": "0.0.4", "babel-plugin-transform-es3-member-expression-literals": "^6.22.0", "babel-plugin-transform-es3-property-literals": "^6.22.0",