From 9ab49920edd8f9e99eb13cecc1f9ea3e1debfc54 Mon Sep 17 00:00:00 2001 From: Eric Dobbertin Date: Thu, 4 Apr 2019 15:46:47 -0500 Subject: [PATCH 1/2] fix: babel transform mjs files Signed-off-by: Eric Dobbertin --- babel.config.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/babel.config.js b/babel.config.js index 24e32d96c..68b64a211 100644 --- a/babel.config.js +++ b/babel.config.js @@ -44,9 +44,14 @@ module.exports = function (api) { browsers: [ "last 2 versions", "ie 11" - ], - // "browsers" target is ignored when "esmodules" is true - esmodules + ] + // Note: If we eventually drop IE11 supports, it should be safe + // to go back to passing `esmodules: true` here. But for now, + // we want the mjs files to be transformed to be IE11 compatible + // EXCEPT for `import`. This allows Webpack 4 to tree shake this + // package but yet still remain compatible with IE11 without + // further transformation by the app using this package. + // esmodules }, // https://babeljs.io/docs/en/babel-preset-env#usebuiltins-usage-experimental useBuiltIns: "usage" From 7adaf55e3e647a372d6d30108352526275725702 Mon Sep 17 00:00:00 2001 From: Eric Dobbertin Date: Thu, 4 Apr 2019 15:59:06 -0500 Subject: [PATCH 2/2] chore: ignore snyk issue Signed-off-by: Eric Dobbertin --- .snyk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.snyk b/.snyk index 4a2c1b436..2d4d9be98 100644 --- a/.snyk +++ b/.snyk @@ -77,5 +77,5 @@ ignore: 'npm:mem:20180117': - libnpx > yargs > os-locale > mem: reason: No update available - expires: '2019-03-31T21:10:49.245Z' + expires: '2019-05-04T20:58:36.166Z' patch: {}