
Rust-based platform for the Web – SWC
SWC is an extensible Rust-based platform for the next generation of fast developer tools. It's used by tools like Next.js, Parcel, and Deno, as well as companies like Vercel, ByteDance, Tencent, Shopify, Trip.com, and more. SWC can be used for both compilation and bundling.
SWC 中文网
SWC 是一个可扩展的 Rust 平台,适用于下一代快速开发工具。它被 Next.js、Parcel 和 Deno 等工具以及 Vercel、字节跳动、腾讯、Shopify、Trip.com 和 更多 等公司使用。 SWC 可用于编译和打包。
新一代的编译工具 SWC最近前端圈掀起了一阵 rust 风,凡是能用 …
2022年1月13日 · 通过如下命令,可以将一个 ES6 的 JS 文件转化为 ES5。 下面是 source.js 的代码: console. log ('app started') 代码中囊括了 ES6 的两个特性, const 声明 和 箭头函数。 经过 swc 转化后,这两个特性分别被转化成了 var 声明 和 function 匿名函数。 swc 与 babel 一样,支持类似于 .babelrc 的配置文件:.swcrc,配置的格式为 JSON。 babel 的插件系统被 swc 整合成了 jsc.parser 内的配置,基本上大部分插件都能照顾到。 而且,swc 还继承了压缩的能力,通过 …
swc - GitHub
Saved searches Use saved searches to filter your results more quickly
javascript - 新一代的编译工具 SWC - 自然醒的笔记本
2022年1月13日 · 通过如下命令,可以将一个 ES6 的 JS 文件转化为 ES5。 下面是 source.js 的代码: console.log('app started') 代码中囊括了 ES6 的两个特性, const 声明 和 箭头函数。 经过 swc 转化后,这两个特性分别被转化成了 var 声明 和 function 匿名函数。 swc 与 babel 一样,支持类似于 .babelrc 的配置文件:.swcrc,配置的格式为 JSON。 babel 的插件系统被 swc 整合成了 jsc.parser 内的配置,基本上大部分插件都能照顾到。 而且,swc 还继承了压缩的能力,通过 …
SWC 食用指南 - swwind's blog
2024年7月8日 · 顾名思义, parse 函数用来实现从源代码到 AST 的转换过程,并且会返回一个类型丰富的 Js 对象。 例如,如果想要解析一份 Js 代码,并根据 AST 树查找一些固定的匹配,比起使用正则表达式,你可以这么写.
swc - 用 Rust 打造的高性能 TypeScript 和 JavaScript 编译器 - 懂AI
SWC(Speedy Web Compiler)是一款用 Rust 开发的高性能 TypeScript 和 JavaScript 编译器。它既可作为 Rust 库使用,也是强大的 JavaScript 开发工具。SWC 以快速编译和丰富功能著称,支持最新 JavaScript 特性,旨在提升 Web 开发效率。
介紹 SWC 1.0 – SWC 繁體中文
swc (快速的網路編譯器)是一個超級快速的 JavaScript 編譯器。 SWC 能做什麼? 它可以將 TypeScript / jsx / ECMAScript 2019 轉譯成瀏覽器相容的 JavaScript。 SWC 有多快? 即使在單核心同步基準測試中,它的速度也比 babel 快 16 到 20 倍。 請注意,實際效能差距更大,因為 swc 在工作執行緒上執行,而 babel 則在事件迴圈執行緒上執行。 你可以使用下列指令安裝 swc. 請參閱 入門 以取得更多詳細資訊。 SWC 1.0 中包含哪些內容? Swc 實作了幾乎所有 babel 外掛 …
swc-project/swc: Rust-based platform for the Web - GitHub
SWC (stands for Speedy Web Compiler) is a super-fast TypeScript / JavaScript compiler written in Rust. It's a library for Rust and JavaScript at the same time. If you are using SWC from Rust, see rustdoc and for most users, your entry point for using the library will be parser. Also, SWC tries to …
swc、esbuild和vite前端构建工具浅析过去几年里前端构建工具如 …
2022年8月29日 · SWC全称为Speed Web Compiler,其是基于Rust实现的工具,目前被很多前端知名项目(Next.js、Parcel和Deno)所使用。 核心功能库. @swc/cli: CLI 命令行工具,可通过命令行编译文件。 @swc/core: 编译转码核心的API的集合。 swc-loader: 该模块允许您将 SWC 与 webpack 一起使用。