remove inline plugin from Babel's .babelrc (#6348)
This commit is contained in:
parent
0e432f0e0d
commit
7c8a6cb461
18
.babelrc.js
18
.babelrc.js
@ -6,24 +6,6 @@ let envOpts = {
|
||||
|
||||
module.exports = {
|
||||
comments: false,
|
||||
plugins: [
|
||||
// temp until next release
|
||||
function() {
|
||||
return {
|
||||
visitor: {
|
||||
"Function": function(path) {
|
||||
const node = path.node;
|
||||
for (let i = 0; i < node.params.length; i++) {
|
||||
const param = node.params[i];
|
||||
if (param.type === "AssignmentPattern") {
|
||||
param.left.optional = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
],
|
||||
presets: [
|
||||
["env", envOpts],
|
||||
"stage-0",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user