From 10555c719ee236ad3d2abc9e90c030cadd7380dd Mon Sep 17 00:00:00 2001 From: Daniel Tschinder Date: Tue, 15 Jan 2019 23:34:18 -0800 Subject: [PATCH] Build the parser also for node 6.9 and up --- babel.config.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/babel.config.js b/babel.config.js index ce4eb1d565..12f4bb16ca 100644 --- a/babel.config.js +++ b/babel.config.js @@ -14,12 +14,16 @@ module.exports = function(api) { let convertESM = true; let ignoreLib = true; let includeRuntime = false; + const nodeVersion = "6.9"; switch (env) { // Configs used during bundling builds. case "babel-parser": convertESM = false; ignoreLib = false; + envOpts.targets = { + node: nodeVersion, + }; break; case "standalone": convertESM = false; @@ -29,7 +33,7 @@ module.exports = function(api) { case "production": // Config during builds before publish. envOpts.targets = { - node: "6.9", + node: nodeVersion, }; break; case "development":