swc/bundler
강동윤 f44e25c3af
fix(es/minifier): Improve output of minifier (#1990)
swc_common:
 - Add `Span.has_mark`.

swc_ecma_codegen:
 - Emit `1e3` for `1000`.
 - Optimize output. (#1986)

swc_ecma_minifier:
 - name mangler: Don't use keywords as an id.
 - `properties`: Optimize member expression with string properties.
 - `inline`: Inline some function expressions even if it's not fn-local.
 - `analyzer`: Track reassignment correctly.
 - `analyzer`: Track fn-local correctly.
 - `sequences`: Inject `void` if required.
 - `inline`: Inline function declarations correctly.
 - `sequences`: Merge expressions into test of if statements.
 - `sequences`: Reduce calls to an assigned variable.
 - Use `Marks` instead of `&dyn Comments`.


swc_ecma_transforms_optimization:
 - `expr_simplifier`: Fix infinite loops.

node/swc:
 - Ensure that `.transform` performs minification. (#1989)
2021-08-04 00:52:47 +09:00
..
assets swc_bundler (#943) 2020-08-12 22:18:47 +09:00
examples bundler: Handle swc helpers (#1199) 2020-11-05 09:53:18 +09:00
scripts fix(bundler): Fix bugs (#1437) 2021-03-02 17:33:03 +09:00
src fix(es/minifier): Improve output of minifier (#1990) 2021-08-04 00:52:47 +09:00
tests fix(testing): Allow using it with stable rustc (#1974) 2021-07-29 14:18:21 +09:00
build.rs Fix bundler (#1194) 2020-10-30 14:49:02 +09:00
Cargo.toml fix(es/minifier): Improve output of minifier (#1990) 2021-08-04 00:52:47 +09: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.