76de51333d
swc_common: - Add `NoopComments`. - Implement `Comments` for `Option<C>` where C: `Comments`. - Add some helper methods to `Comments`. - Deprecate `CommentsExt`. swc_ecma_transforms_base: - `resolver`: Handle `TsImportEqualsDecl`. swc_ecma_transforms_react: - Reduce useless cloning using `Arc`. - Expose API for parsing directives like `@jsxPragma`. swc_ecma_transforms_typescript: - Accept `pragma` and `pragmaFrag`. - Support jsx directives. - Preserve jsx-related imports. swc: - Optimize `SwcComments`. - Run`resolver` before everything else. |
||
---|---|---|
.cargo | ||
.github | ||
.vscode | ||
atoms | ||
benches | ||
bundler | ||
common | ||
css | ||
ecmascript | ||
examples | ||
macros | ||
node | ||
node-swc | ||
plugin | ||
scripts | ||
src | ||
testing | ||
tests | ||
vendor | ||
visit | ||
wasm | ||
.gitattributes | ||
.gitignore | ||
.gitmodules | ||
.npmignore | ||
.prettierrc | ||
.rustfmt.toml | ||
ARCHITECTURE.md | ||
Cargo.lock | ||
Cargo.toml | ||
CONTRIBUTING.md | ||
deny.toml | ||
jest.config.js | ||
LICENSE-APACHE | ||
LICENSE-MIT | ||
package.json | ||
README.md | ||
rust-toolchain | ||
tsconfig.json | ||
yarn.lock |
Make the web (development) faster.
swc 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 entrypoint for using library will be parser.
If you are using swc from javascript, please refer to docs on the website.
Documentation
Check out the documentation in the website.
Features
Please see comparison with babel.
Performance
Please see benchmark results on the website.
Supporting swc
swc is a community-driven project, and is maintained by a group of volunteers. If you'd like to help support the future of the project, please consider:
- Giving developer time on the project. (Message us on Discord (preferred) or Github discussions for guidance!)
- Giving funds by becoming a sponsor (see https://opencollective.com/swc)!
Contributing
See CONTRIBUTING.md. You may also find the architecture documentation useful (ARCHITECTURE.md).
License
swc is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0).
See LICENSE-APACHE and LICENSE-MIT for details.