Commit Graph

1920 Commits

Author SHA1 Message Date
Austaras
1555ceb8a3
feat(es/transforms/compat): Add loose mode to parameters (#2911)
swc_ecma_utils:
 - Make `WrapperState` implement `Clone`.

swc_ecma_transforms_compat:
 - `paramters`: Fix handling of non-loose mode. (Closes #2800, Closes #2825)
2021-12-02 01:04:01 +00:00
Donny
4e214ce437 chore: Publish v1.2.116 2021-12-02 07:10:16 +09:00
Donny
3bf751ac4a chore: Publish crates 2021-12-02 03:33:26 +09:00
Alexander Akait
8781527751
fix(css/ast): Fix type definitions related to parsing unknown at-rules (#2922)
swc_css_ast:
 - Rename `FnValue` to `Function`.
2021-12-01 17:07:49 +00:00
Donny/강동윤
4539b3a610
fix(webpack/ast): Don't remove comparison of process.env.NODE_ENV (#2937) 2021-12-01 23:18:19 +09:00
Donny/강동윤
667dd1e95e
fix(webpack/ast): Fix ast reducer (#2936)
swc_webpack_ast:
 - Preserve string literals in `require`
2021-12-01 21:54:55 +09:00
Donny
f9cd49b845 chore: Publish crates 2021-12-01 21:26:31 +09:00
Donny
f8fcee1c46 chore: Publish crates 2021-12-01 21:26:01 +09:00
Donny/강동윤
9f5fc11a8f
fix(webpack/ast): Fix handling of define (#2935)
swc_webpack_ast:
 - Support `define` calls with `require` .
2021-12-01 21:25:46 +09:00
Pig Fang
8a55870ce5
feat(es/preset-env): Upgrade browserslist-rs (#2927) 2021-12-01 12:18:11 +00:00
Donny/강동윤
24de5507ae
fix(bundler): Use interop for common js dependencies (#2930)
swc_bundler:
 - Update helpers to use interop for common js deps. (Closes #2789)
2021-12-01 19:53:06 +09:00
Donny
1fabb0381a chore: Publish crates 2021-12-01 18:36:26 +09:00
Alexander Akait
0f4ad0f8c8
fix(css/ast): Fix type definition of @namespace (#2919) 2021-12-01 09:29:25 +00:00
Donny
563c63c225 chore: Publish crates 2021-12-01 15:32:22 +09:00
Donny/강동윤
18d9fd91f9
fix(webpack/ast): Fix span of null literals (#2925)
swc_webpack_ast:
 - Preserve original spans for injected `null` literals
2021-12-01 15:31:56 +09:00
Donny
86d2cebd37 chore: Publish v1.2.115 2021-12-01 14:20:52 +09:00
Donny
b6f92497bf chore: Publish crates 2021-11-30 20:20:38 +09:00
OJ Kwon
5999634952
feat(plugin/runner): Supports specifying exact path for plugin (#2918) 2021-11-30 11:19:26 +00:00
Donny
e6957ce400 chore: Publish crates 2021-11-30 19:40:27 +09:00
OJ Kwon
4075ff8029
perf(es/transform/compat): Migrate optional_chaining to VisitMut (#2891) 2021-11-30 10:00:56 +00:00
Donny/강동윤
854b598e94
fix(webpack/ast): Improve ast reducer (#2917) 2021-11-30 18:16:05 +09:00
Donny
12d31c997b chore: Publish crates 2021-11-30 13:53:41 +09:00
RiESAEX
0c1f2ebdde
fix(es/transforms/compat): Fix destructuring (#2904)
swc_ecma_transforms_compat:
 - `desturcturing`: Fix non-loose mode. (Closes #2841, Closes #2863)
2021-11-30 04:49:54 +00:00
Donny
073c3787f1 chore: Publish crates 2021-11-30 13:11:36 +09:00
Donny/강동윤
028d0ce2c6
fix(es/transforms/compat): Fix block scoping (#2916)
swc_ecma_transforms_compat:
 - `block_scoping`: Track if we are in nested loops.
 - `block_scoping`: Don't treat `break` nor `continue` in nested loops as leaper. (https://github.com/vercel/next.js/issues/31757, Closes #2799, Closes #2915)
 - `block_scoping`: Don't recurse into nested loops while looking for functions. (Closes #2622)
2021-11-30 13:11:09 +09:00
Donny
57fb69262d chore: Publish crates 2021-11-30 11:25:38 +09:00
Alexander Akait
fcd0d7a6cb
feat(css/ast): Add a flag to number types (#2905)
swc_css_ast:
 - Add a flag to distinguish integer and floats.
2021-11-30 01:54:10 +00:00
Donny
9b022dbabe chore: Publish crates 2021-11-30 10:04:41 +09:00
Donny/강동윤
32b68ef5d0
fix(webpack/ast): Fix ast reducer (#2914)
swc_webpack_ast:
 - Implement more rules.
 - Test using typescript test suites.
2021-11-30 10:04:08 +09:00
Donny
167798b599 chore: Publish crates 2021-11-30 09:41:40 +09:00
Donny
158d4bc1ed chore: Reduce compile time 2021-11-30 09:26:27 +09:00
Donny
666e3cc71e chore: Revert #2907 2021-11-30 08:42:45 +09:00
Donny
166c12d295 chore: Revert 2021-11-30 08:34:20 +09:00
Donny
189a5903cc chore: Fix cargo config again 2021-11-30 08:19:47 +09:00
Donny
3695159958 chore: Fix cargo config 2021-11-30 08:07:21 +09:00
Donny
655d754d0e chore: Publish crates 2021-11-30 03:55:52 +09:00
Donny
3211ad23cf chore: Publish crates 2021-11-30 00:27:19 +09:00
Alexander Akait
d7183d82e2
feat(css/parser): Add more error recovery (#2849) 2021-11-30 00:26:57 +09:00
Donny/강동윤
435faccc2e
chore: Reduce compile time (#2909) 2021-11-30 00:16:28 +09:00
Donny/강동윤
586ab0cf76
fix(webpack/ast): Adjust acorn options. (#2908)
swc_babel_ast:
 - Fix serialization of class properties.
 - Adjust `acorn` options.
2021-11-29 21:08:22 +09:00
Donny
edc0cb0a2d chore: Publish crates 2021-11-29 19:39:11 +09:00
Alexander Akait
c77ebbeb8d
feat(css/ast): Add support for nested @at-rules (#2897) 2021-11-29 19:38:49 +09:00
Donny
a46ee17281 chore: Publish crates 2021-11-29 19:30:33 +09:00
Pig Fang
5a68a360b4
fix(es/preset-env): Enable "mobile to desktop" (#2907) 2021-11-29 19:29:49 +09:00
Donny
756a9bad6a chore: Publish crates 2021-11-29 16:48:34 +09:00
Pig Fang
af216c1014
chore(es/preset-env): Upgrade browserslist-rs (#2889) 2021-11-29 16:48:07 +09:00
Donny
3d75b9a968 chore: Publish crates 2021-11-29 16:47:27 +09:00
such0624
c186aa443a
fix(es/parser): Fix parser (#2903)
swc_ecma_parser:
 - Fix `skip_ts_parameter_start`. (Closes #2160)
2021-11-29 07:46:14 +00:00
Donny/강동윤
bb66083f69
fix(swc): Unimplement Default for JsMinifyOptions (#2901) 2021-11-28 18:57:48 +09:00
Donny
188eaad24e chore: Publish crates 2021-11-28 18:09:28 +09:00