Donny/강동윤
306cf989db
fix(es/minifier): Fix minifier ( #2597 )
...
swc_ecma_minifier:
- Fix `negate_cost`.
2021-10-31 08:43:44 +00:00
Donny
4328276414
chore: Publish crates
2021-10-30 21:41:20 +09:00
Antonio Musolino
52318a4a8e
fix(es/lexer): Fix parsing of interpreter ( #2589 )
2021-10-30 21:10:45 +09:00
Donny
bb189c74ac
chore: Publish crates
2021-10-30 15:53:07 +09:00
Christopher Hlubek
3f5c826251
fix(es/transform/react): Allow multiple JSX pragmas in single Comment
( #2561 )
2021-10-30 15:18:43 +09:00
Donny/강동윤
33bc3d2b91
feat(es/transforms/regenerator): Allow configuring import path ( #2581 )
...
swc_ecma_transforms_compat:
- `regenerator`: Allow configuring import path of `regenerator-runtime`.
2021-10-29 14:36:11 +00:00
OJ Kwon
7cc51beb45
fix(es/transforms/cjs): Allow reassignment to exported functions ( #2569 )
...
swc_ecma_transforms_module:
- `common_js`: Reassign exports for the functions. (#2549 )
2021-10-29 16:03:02 +09:00
Donny/강동윤
69cfa98c50
fix(es/minifier): Fix block unwrapping issue ( #2570 )
...
swc_ecma_minifier:
- Check more before removing `{` and `}`.
2021-10-28 10:58:26 +00:00
Donny/강동윤
4b2903e3b4
fix(es/minifier): Fix minifier ( #2564 )
...
swc_ecma_minifier:
- Don't change depth of function while negating if statements. (#2558 )
swc_ecma_transforms_optimization:
- `dead_branch_remover`: Preserve `this`. (#2465 , #2466 )
swc:
- Make `toplevel` default to true if `module` is true. (#2254 )
2021-10-28 04:35:45 +00:00
Donny/강동윤
0364f9a2ae
feat(es/transforms/testing): Reduce CI time by caching execution result ( #2565 )
...
swc_ecma_transforms_testing:
- Cache execution test result on CI.
2021-10-28 04:00:25 +00:00
Donny/강동윤
7e29685a17
chore: Fix failing tests and improve CI scripts ( #2563 )
2021-10-28 02:55:49 +00:00
David Sherret
7b4af435f2
feat(es/parser): Enable ergonomic brand checks for TypeScript ( #2562 )
2021-10-28 09:22:51 +09:00
Donny/강동윤
79a426e0d8
fix(es/minifier): Don't treat catch clause as a scope ( #2557 )
...
swc_ecma_minifier:
- Don't treat a catch clause as a scope.
2021-10-27 11:19:30 +00:00
OJ Kwon
97b5a738c2
fix(es/fixer): Preserve more parens ( #2553 )
...
swc_ecma_transforms_base:
- `fixer`: Preserve parens of a binary expression if the LHS is an object literal. (#2550 )
2021-10-27 16:56:45 +09:00
Donny/강동윤
5f0524c54e
fix(es/transforms/react): Revert #2542 ( #2552 )
2021-10-27 04:42:12 +00:00
Donny/강동윤
f81b60fd1b
fix(es/minifier): Fix minifier ( #2551 )
...
swc_ecma_minifier:
- `hoist_props`: Check for infection. (#2506 )
2021-10-27 04:19:14 +00:00
Donny/강동윤
70f55833e9
feat(es/transforms/react): Improve development more ( #2542 )
...
swc_ecma_transforms_react:
- `jsx_src`: Add column to `__source`.
- `jsx`: Support `jsxDEV`.
- `jsx`: Handle `__source` and `__self` specially.
2021-10-26 11:09:09 +00:00
Donny/강동윤
b8933e3db9
fix(swc): Fix bugs ( #2538 )
...
swc_ecma_transforms_base:
- `unique_scopes`: Handle method properties.
- `hygiene`: Fix handling of method properties. (#2539 )
swc_ecma_transforms_compat:
- Fold children of for-of/in statements. (#2531 )
swc_ecma_minifier:
- `name_mangler`: Fix handling of method properties.
2021-10-26 07:43:32 +00:00
Nayeem Rahman
693181ee6a
fix(es/transforms/typescript): Remove declare
d class properties ( #2530 )
...
swc_ecma_transforms_typescript:
- `strip`: Remove class properties with `declare` keyword.
2021-10-26 14:31:20 +09:00
Donny/강동윤
dcf5f05195
fix(es/minifier): Fix minifier ( #2528 )
...
swc_ecma_minifier:
- `collapse_vars`: Respect operator.
2021-10-25 12:24:40 +00:00
Donny/강동윤
a099e8f846
perf(es/minifier): Make name mangler parallel ( #2527 )
...
swc_ecma_minifier:
- Remove useless `RefCell<T>`.
- Make name mangler parallel.
2021-10-25 07:09:00 +00:00
Donny/강동윤
e7189fbdbd
fix(es/transforms/compat): Fix async_to_generator
( #2526 )
...
swc_ecma_transforms_compat:
- `async_to_generator`: Handle `for-await` correctly. (#2306 )
2021-10-25 05:37:13 +00:00
Donny/강동윤
709b3c7cd6
fix(es/transforms/optimization): Fix inline_globals
( #2524 )
...
swc_ecma_transforms_optimization:
- `inline_globals`: Skip assignment to `process.env.FOO`. (#2499 )
2021-10-24 21:51:08 +00:00
Donny/강동윤
a8b29b662e
test(es/minifier): Add a test for moment.js
( #2522 )
...
swc_ecma_minifier:
- Ensure that `moment.js` is minified correctly. (#2521 )
2021-10-24 14:54:23 +00:00
Sosuke Suzuki
65c83e8cb4
feat(es/transforms): Move stage 4 proposals to es2022
( #2519 )
2021-10-24 21:28:40 +09:00
Donny/강동윤
fce3b79e79
fix(es/minifier): Improve name mangler ( #2509 )
...
swc_ecma_transforms_base:
- Expose renamer.
swc_ecma_minifier:
- Improve name mangler.
swc:
- Disable hygiene if mangler is enabled.
2021-10-24 10:52:09 +00:00
Sosuke Suzuki
ecd617af39
feat(es/transforms): Move class_properties
to es2022
( #2512 )
2021-10-23 23:25:14 +09:00
Austaras
c482162206
feat(es/transforms/module): Fix transform of this
for classes ( #2514 )
2021-10-23 21:13:56 +09:00
Donny/강동윤
f33d3218cd
feat(es/transforms/compat): Add single-property optimization to destructuring
( #2511 )
...
swc_ecma_transforms_compat:
- `destructuring`: Convert single-property destructuring to direct field access.
2021-10-22 13:46:29 +00:00
Sosuke Suzuki
91717c9c5f
feat(es/babel): Support babelify
of static blocks ( #2504 )
2021-10-22 13:32:34 +09:00
Donny/강동윤
175c997676
fix(es/transforms/react): Fix hygiene of react fast refresh ( #2501 )
...
swc_ecma_trasnforms_react:
- `refresh`: Use span hygiene system.
2021-10-21 14:09:00 +00:00
Donny/강동윤
9e215769cc
fix(es/minifier): Fix minifier using Deno
test suite ( #2503 )
...
swc_ecma_codegen:
- Emit `;` after private class properties.
swc_ecma_minifier:
- `pure`: Drop more invalid expressions.
- `sequences`: Drop more invalid expressions.
- `strings`: Fix concat.
- `inline`: Inline into `b` in `a[b] = foo`.
2021-10-21 11:56:48 +00:00
Pig Fang
a9869e60f2
test(es/transforms/compat): Add tests for optional_catch_binding
( #2502 )
2021-10-21 20:41:10 +09:00
Sosuke Suzuki
52dfb55816
fix(es/transforms/compat): Change error message ( #2500 )
...
swc_ecma_transforms_compat:
- `classes`: Use `unreachable` instead of `unimplemented ` for static blocks.
2021-10-21 15:15:08 +09:00
Nayeem Rahman
c29a6e11c9
fix(es/transforms/typescript): Fix strip
( #2496 )
...
swc_ecma_transforms_typescript:
- Visit the RHS of import equals declaration properly.
2021-10-21 15:12:51 +09:00
Donny
7af0f8c81b
chore: Publish
2021-10-21 14:16:15 +09:00
Donny/강동윤
26944e159d
fix(es/transforms/base): Reimplement hygiene
( #2408 )
...
swc_ecma_transforms_base:
- Reimplement `hygiene`.
2021-10-21 05:12:50 +00:00
Donny/강동윤
eef3d6e3fb
fix(es): Fix simple bugs ( #2495 )
...
swc_ecma_parser:
- Don't panic on `declare declare`. (#2343 )
swc_ecma_transforms_react:
- Don't panic on `createElement()`. (#2492 )
swc_bundler:
- Don't panic on wasm. (#2334 )
swc:
- Disable `inline_globals` if it's not specified. (#2490 )
2021-10-20 06:12:21 +00:00
Sosuke Suzuki
bb1cc974c7
feat(es/trasform): Support static blocks ( #2474 )
...
swc_ecma_transforms_proposal:
- Add transform for static blocks, which is stage 3.
2021-10-20 14:18:55 +09:00
Donny/강동윤
cef2c8666e
fix(es/minifier): Fix join_vars
( #2494 )
...
swc_ecma_minifier:
- Don't join `let`/`const` into narrower scope.
2021-10-20 05:17:14 +00:00
David Sherret
3886eeddd5
fix(es/parser): Fix parsing of a property named async
( #2485 )
2021-10-20 04:31:52 +09:00
Donny/강동윤
7c5b6cafd8
fix(es/minifier): Fix regexp handling ( #2489 )
...
swc_ecma_minifier:
- Use allowlist of characters for optimizing RegExp calls.
2021-10-19 19:30:20 +00:00
Donny/강동윤
bf886bac73
perf(es/parser): Make typescript parser faster ( #2483 )
...
swc_ecma_parser:
- Check for option before backtracking.
2021-10-20 00:00:48 +09:00
Donny/강동윤
b0361caa58
feat(es/transforms/optimization): Improve inline_globals
( #2479 )
...
swc_ecma_transforms_optimization:
- `inline_globals`: Support inlining into shorthand properties.
- `inline_globals`: Support replacing member expressions.
swc:
- Add an option to disable simplifier when using `inline_globals`.
node_swc:
- Improve error message on panic.
2021-10-19 14:58:10 +00:00
Donny/강동윤
9b96885171
fix(es/transforms/compat): Fix handling of private static properties ( #2478 )
...
swc_ecma_transforms_compat:
- `class_properties`: Replace `this` in private static property initializers. (#2476 )
2021-10-19 11:21:13 +00:00
Donny/강동윤
0020e16370
fix(es/minifier): Fix minifier ( #2477 )
...
swc_ecma_minifier:
- `MultiReplacer`: Handle inlining into shorthands.
- `ExprReplacer`: Handle inlining into shorthands.
2021-10-19 11:00:51 +00:00
Donny/강동윤
2ca6e5d79b
feat(es/transforms/optimization): Support inlining of typeof
s ( #2473 )
...
swc_ecma_transforms_optimization:
- `inline_globals`: Support inlining of `typeof`s.
swc:
- Change error message for parsing failure to mention `Syntax Error`.
2021-10-19 09:49:18 +00:00
Donny/강동윤
123c1f5d02
chore: Fix typo ( #2472 )
2021-10-19 08:25:57 +00:00
Donny/강동윤
c9437d3226
fix(es): Fix bugs ( #2469 )
...
swc:
- Fix handling of `envs`.
- Check for already fixed issues. (#2319 )
2021-10-19 06:02:46 +00:00
Donny
98a18e306a
chore: Publish swc_ecma_transforms_compat
2021-10-19 00:43:00 +09:00