-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Closed
Labels
7.x: regressionarea: commentsoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issueA closed issue/PR that is archived due to age. Recommended to make a new issue
Description
v7 Regression
Describe the regression
A comment line starting with "//=" is moved at the end of the previous code line without comment
This is a problem for some process/macro relies on theses specifics comments lines to act.
This doesn't occur with pre 7 version of babel
Input Code
var toto = 1;
//= my comment
var truc="bidule";
// my commentCompile to :
var toto = 1; //= my comment
var truc="bidule";
// my commentBabel Configuration (.babelrc, package.json, cli command)
{
{ compact: false, presets: ["@babel/env"] }
}Expected behavior/code
var toto = 1;
//= my comment
var truc="bidule";
// my commentEnvironment
- Babel version(s): v7.0.0
- Node/npm version: Node 7
mrtnzlml, toolchild, Yaffle, MuhammadMabrouk, tetslee and 3 more
Metadata
Metadata
Assignees
Labels
7.x: regressionarea: commentsoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issueA closed issue/PR that is archived due to age. Recommended to make a new issue