babel-with-recast

时间:2024-06-14 14:44:36
【文件属性】:

文件名称:babel-with-recast

文件大小:19KB

文件格式:ZIP

更新时间:2024-06-14 14:44:36

JavaScript

重铸通天塔 这是在重铸中使用babel的示例。 目的是在保留格式/间距的同时仍对AST进行转换。 首先安装依赖项(可用yarn.lock )。 然后运行node . 然后您将获得如下输出: ~/Desktop/babel-with-recast (master) :ghost: $ node . /Users/kdodds/Desktop/babel-with-recast/node_modules/babel-core/lib/transformation/file/index.js:605 throw err; ^ Error: unknown: {type: StringLiteral, start: undefined, end: undefined, loc: undefined, extra: [object Object], value: __esMo


【文件预览】:
babel-with-recast-main
----.gitignore(13B)
----package.json(190B)
----index.js(565B)
----README.md(2KB)
----yarn.lock(64KB)

网友评论