thx / gogocode

GoGoCode is a transformer for JavaScript/Typescript/HTML based on AST but providing a more intuitive API.
MIT License
5.61k stars 425 forks source link

Bug Report From Playground: Error: parse error!Missing initializer in const declaration. #149

Closed taomas closed 2 years ago

taomas commented 2 years ago

version 1.0.53解析异常

version 1.0.45则解析正常

请问这次版本升级后是一次破坏性改动吗,为什么会影响到老版本的代码解析逻辑。

shuerguo999 commented 2 years ago

应该是底层依赖的解析器babel-parser升级了,规范写法应该是export const $$1 = $$2