The cloning caused comments that where added to the original node to be persisted into the cloned node. Espree/Acorn does not have any cloning, that's why it is working there. This change omits comments when cloning, as removing the cloning causes tests in babel to fail.
4 lines
29 B
JSON
4 lines
29 B
JSON
{
|
|
"sourceType": "module"
|
|
}
|