Skip to Content
开发文档从 Babel 迁移

从 Babel 迁移

¥Migrating from Babel

SWC 的 compilation 旨在支持所有 ECMAScript 功能。SWC CLI 被设计为 Babel 的直接替代品:

¥SWC’s compilation is intended to support all ECMAScript features. The SWC CLI is designed to be a drop-in replacement for Babel:

$ npx babel # old $ npx swc # new

SWC 支持所有第 3 阶段提案和预设环境,包括错误修复转换。

¥SWC supports all stage 3 proposals, and preset-env, including bugfix transforms.

Last updated on
SWC v1.11 中文网 - 粤ICP备13048890号
Nodejs.cn 旗下网站