swc/bundler
Donny/강동윤 fac6f47863
perf(es/transforms): Improve performance (#2329)
swc_ecma_ast:
 - Implement `Take` for `Function`.
 - Implement `Take` for `FnExpr`.
 - Implement `Take` for `ClassExpr`.

swc_ecma_transforms_compat:
 - Migrate `es2015::duplicate_keys` to `VisitMut`.
 - Migrate `es2015::template_literals` to `VisitMut`.
 - Migrate `es2015::function_name` to `VisitMut`.
 - Add more fast-path to `reserved_words` pass.

swc_ecma_transforms_react:
 - Reduce allocations of `pure_annotations`.
 - Migrate `pure_annotations` to `VisitMut`.
 - Migrate `jsx::display_name` to `VisitMut`.

swc_ecma_transforms_optimization:
 - Migrate `inline_globals` to `VisitMut`.
 - `inline_globals`: Use `Lrc<FxHashMap<K, V>>`.

swc:
 - Cache `current_dir()`.
 - `ModuleConfig::build`: cacnonicalize only if `paths` is used.
2021-10-05 13:31:35 +00:00
..
assets swc_bundler (#943) 2020-08-12 22:18:47 +09:00
examples fix: Migrate dependencies (#2307) 2021-09-27 09:19:15 +00:00
scripts fix(bundler): Fix bugs (#1437) 2021-03-02 17:33:03 +09:00
src chore: Update rustc (#2332) 2021-10-01 12:11:17 +00:00
tests fix(es/transforms/base): Fix hygiene pass (#2266) 2021-09-21 12:21:49 +00:00
build.rs Fix bundler (#1194) 2020-10-30 14:49:02 +09:00
Cargo.toml perf(es/transforms): Improve performance (#2329) 2021-10-05 13:31:35 +00:00
README.md swc_bundler (#943) 2020-08-12 22:18:47 +09:00

swc_bundler

Bundler for the swc project.

Features

  • Clean merging (generated code is easy to optimize)
  • Parallel file loading
  • Tree shaking
  • Common js support (aka require)
  • Circular imports

Tests live at /spack.