Build the parser also for node 6.9 and up
This commit is contained in:
parent
58768072ef
commit
10555c719e
@ -14,12 +14,16 @@ module.exports = function(api) {
|
|||||||
let convertESM = true;
|
let convertESM = true;
|
||||||
let ignoreLib = true;
|
let ignoreLib = true;
|
||||||
let includeRuntime = false;
|
let includeRuntime = false;
|
||||||
|
const nodeVersion = "6.9";
|
||||||
|
|
||||||
switch (env) {
|
switch (env) {
|
||||||
// Configs used during bundling builds.
|
// Configs used during bundling builds.
|
||||||
case "babel-parser":
|
case "babel-parser":
|
||||||
convertESM = false;
|
convertESM = false;
|
||||||
ignoreLib = false;
|
ignoreLib = false;
|
||||||
|
envOpts.targets = {
|
||||||
|
node: nodeVersion,
|
||||||
|
};
|
||||||
break;
|
break;
|
||||||
case "standalone":
|
case "standalone":
|
||||||
convertESM = false;
|
convertESM = false;
|
||||||
@ -29,7 +33,7 @@ module.exports = function(api) {
|
|||||||
case "production":
|
case "production":
|
||||||
// Config during builds before publish.
|
// Config during builds before publish.
|
||||||
envOpts.targets = {
|
envOpts.targets = {
|
||||||
node: "6.9",
|
node: nodeVersion,
|
||||||
};
|
};
|
||||||
break;
|
break;
|
||||||
case "development":
|
case "development":
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user