istanbuljs / nyc

the Istanbul command line interface
https://istanbul.js.org/
ISC License
5.55k stars 353 forks source link

For the code after stake insertion, import is not on the first line of the file #1490

Open Yuanshandai opened 1 year ago

Yuanshandai commented 1 year ago

Hi, I have encountered a headache. After I used NYC instrument to insert piles, the imported code was not on the first line of the file, resulting in an error in compilation. Have you ever encountered this problem and whether there is a solution?