From eff4c63b649c2e729087c047534cefdea1f69f2b Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Sun, 12 Aug 2018 20:11:10 -0500 Subject: [PATCH 1/3] bump @babel deps to 7.0.0-rc.1, no caret ranges --- package.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 23e0902..ba8719c 100644 --- a/package.json +++ b/package.json @@ -47,14 +47,14 @@ }, "homepage": "https://github.com/embark-framework/EmbarkJS#readme", "dependencies": { - "@babel/runtime": "^7.0.0-beta.54", + "@babel/runtime-corejs2": "7.0.0-rc.1", "async": "^2.0.1" }, "devDependencies": { - "@babel/cli": "7.0.0-beta.54", - "@babel/core": "7.0.0-beta.54", - "@babel/plugin-transform-runtime": "7.0.0-beta.54", - "@babel/preset-env": "7.0.0-beta.54", + "@babel/cli": "7.0.0-rc.1", + "@babel/core": "7.0.0-rc.1", + "@babel/plugin-transform-runtime": "7.0.0-rc.1", + "@babel/preset-env": "7.0.0-rc.1", "ajv": "6.5.2", "babel-loader": "8.0.0-beta.4", "cross-env": "5.2.0", From d828058fc4f7a1dba4857c7891a2e8c74f61371f Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Sun, 12 Aug 2018 20:11:27 -0500 Subject: [PATCH 2/3] not using babel-loader --- package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package.json b/package.json index ba8719c..a1b5921 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,6 @@ "@babel/plugin-transform-runtime": "7.0.0-rc.1", "@babel/preset-env": "7.0.0-rc.1", "ajv": "6.5.2", - "babel-loader": "8.0.0-beta.4", "cross-env": "5.2.0", "http-server": "0.11.1", "rimraf": "2.6.2", From f654576498a4a830cf1976523475f6f97c65d202 Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Sun, 12 Aug 2018 20:11:54 -0500 Subject: [PATCH 3/3] corejs2 per @babel/plugin-transform-runtime@7.0.0-rc.1 --- .babelrc | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.babelrc b/.babelrc index bd4c591..0a20199 100644 --- a/.babelrc +++ b/.babelrc @@ -8,6 +8,12 @@ "src/node/index.js", "src/standalone/index.js" ], + "plugins": [ + ["@babel/plugin-transform-runtime", { + "corejs": 2, + "useESModules": true + }] + ], "presets": [ ["@babel/env", { "modules": false, @@ -17,14 +23,16 @@ }, "node": { "ignore": ["src/browser.js"], + "plugins": [ + ["@babel/plugin-transform-runtime", { + "corejs": 2 + }] + ], "presets": [ ["@babel/env", { "targets": {"node": "8.11.3"} }] ] } - }, - "plugins": [ - "@babel/plugin-transform-runtime" - ] + } }