So I'm using babel-cli and it seems to be moving my comments to different lines. Is there any way I can tell babel to leave comments alone?
For instance:
console.log('woof');
// <debug>
x = () => {
console.log('woof');
}
// </debug>
x();
Transpiles to:
console.log('woof'); // <debug>
x = function x() {
console.log('woof');
}; // </debug>
x();
When I want it to be:
console.log('woof');
// <debug>
x = function x() {
console.log('woof');
};
// </debug>
x();
This is my config:
{
"presets": [
[
"@babel/preset-env", {
"targets": {
"ie": "11"
}
}
]
],
"plugins": [
"@babel/plugin-transform-object-assign"
]
}