mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
Co-authored-by: Huáng Jùnliàng <[email protected]> Co-authored-by: Nicolò Ribaudo <[email protected]>
17 lines
283 B
JavaScript
17 lines
283 B
JavaScript
module.exports = function (api) {
|
|
api.cache.forever();
|
|
|
|
return {
|
|
plugins: [
|
|
() => ({
|
|
visitor: {
|
|
BinaryExpression(path) {
|
|
console.log("Plugin applied");
|
|
path.node.operator = "+";
|
|
},
|
|
},
|
|
}),
|
|
],
|
|
};
|
|
};
|