Commit Graph

1660 Commits

Author SHA1 Message Date
Donny/강동윤
54bc4054a9
chore: Fix benchmark github action (#2755) 2021-11-16 00:38:03 +09:00
Donny
c15116de07 chore: Publish crates 2021-11-15 17:45:19 +09:00
Tim Neutkens
8aea5ebb47
chore: Ensure feature.manyFiles of Git is enabled (#2754) 2021-11-15 08:44:54 +00:00
OJ Kwon
e7cbe3df20
refactor(es/transforms/compat): Migrate to VisitMut (#2751)
swc_ecma_transforms_compat:
 - `export_namespace_from`: Migrate to `VisitMut`.
2021-11-15 08:22:44 +00:00
Donny/강동윤
6b70fb5afe
chore: Rename the default branch from master to main (#2750) 2021-11-15 16:52:45 +09:00
Tim Neutkens
015b2586c3
chore: Change Gitter link to Discord (#2752) 2021-11-15 16:38:31 +09:00
Donny/강동윤
2462b9941f
refactor: Cleanup (#2749) 2021-11-15 15:24:25 +09:00
Donny
2cd565bfc0 chore: Publish crates 2021-11-15 14:31:44 +09:00
Austaras
dc58122283
feat(es/transforms/compat): Add more loose mode (#2611)
swc_ecma_transforms_compat:
- `computed_properties`: Add loose mode.
- `template_literals`: Add loose mode.
- `object_spread`: Add loose mode.
- `optional_chaining`: Add loose mode.
- `nullish_coalescing`: Add loose mode.
- `optional_chaining`: Fix #2734.
2021-11-15 14:31:21 +09:00
Donny/강동윤
f2c67b8caf
fix(es/minifier): Don't inline string literals if it's used multiple time (#2748)
swc_ecma_minifier:
 - Don't inline strings because it's simple.
 - Inline short strings.
2021-11-15 14:03:03 +09:00
Tim Neutkens
3ebc5c6b69
chore: Update markdown files to use "SWC" instead of "swc" (#2744) 2021-11-15 04:26:04 +00:00
Donny
8df860e16c chore: Publish crates 2021-11-14 06:21:28 +09:00
Hiroshi Ogawa
bb646cc31c
fix(es/transforms/compat): Apply block_scoping before regenerator (#2740) 2021-11-13 21:14:17 +00:00
Donny
898ed7015c chore: Publish crates 2021-11-14 05:35:02 +09:00
Bojan Đurđević
571c5e3123
fix(es/transforms/compat): Fix new_target (#2736) 2021-11-13 20:34:28 +00:00
Luke Fernandez
79fc464f8d
chore: Fix broken link (#2737) 2021-11-13 15:23:37 +09:00
Donny/강동윤
b869c81888
refactor(swc_bundler): Extract logic for analyzing cycles (#2733) 2021-11-12 23:33:32 +09:00
Donny
3294a35417 chore: Publish crates 2021-11-12 21:27:00 +09:00
RiESAEX
6e10168207
fix(es/parser): Check for more typescript class names (#2732)
swc_ecma_parser:
 - Check for more invalid typescript class names. (Closes #1218)
2021-11-12 21:26:37 +09:00
Donny/강동윤
1d518fe381
refactor: Flatten css (#2731) 2021-11-12 19:37:05 +09:00
Donny
fd4a71747b chore: Publish crates 2021-11-12 19:10:21 +09:00
Alexander Akait
65ee1b467e
refactor(css/ast): Rename Text to Ident (#2726) 2021-11-12 10:09:52 +00:00
Donny
90b7074556 chore: Publish crates 2021-11-12 16:26:08 +09:00
OJ Kwon
6148d0c3da
refactor(es/transforms/compat): Migrate to VisitMut (#2709)
swc_ecma_transforms_compat:
 - `async_to_generator`: Migrate to `VisitMut`.
2021-11-12 07:25:32 +00:00
Donny
544835a3a5 chore: Publish crates 2021-11-11 23:37:43 +09:00
RiESAEX
11d1fa56c0
fix(es/lexer): Fix handling of jsx escapes (#2723)
swc_ecma_parser:
 - Remove logic for unescaping jsx escapes. (Closes #2162)
2021-11-11 14:37:21 +00:00
Donny/강동윤
665c8e05fc
fix(es): Move TargetEnv to loader from ast (#2719)
swc_ecma_ast:
 - Move `TargetEnv` to `swc_ecma_loader`.

swc_ecma_loader:
 - Drop unused dependencies.
2021-11-11 20:00:46 +09:00
Donny/강동윤
1d028fe940
fix(es): Fix paths support (#2712)
swc_ecma_loader:
 - `TsConfigResolver`: Use `baseUrl` on exact match while resolving. (Closes #2126)

swc_ecma_transforms_module:
 - Add `import_rewriter`.
 - `NodeImportResolver`: Don't strip extension if it's a directory. (Closes #2269)
 - `NodeImportResolver`: Don't strip extension if it's not `.ts`, `.js` nor `.tsx`.

swc:
 - Use `import_rewriter`. (Closes #1943, Closes #2523)
 - Update test (Closes #2715)
2021-11-11 16:57:31 +09:00
Donny
c5aac71660 chore: Publish crates 2021-11-11 14:15:29 +09:00
Alexander Akait
0b1042354c
fix(css/lexer): Exclude whitespace from spans (#2702) 2021-11-11 14:15:01 +09:00
Donny
5db7bdc133 chore: Publish crates 2021-11-10 21:59:34 +09:00
Alexander Akait
d8ddb2fb99
fix(css/parser): Fix parsing of escaped characters (#2700) 2021-11-10 12:49:32 +00:00
Donny
3adeb6bf30 chore: Publish crates 2021-11-10 20:57:43 +09:00
Donny/강동윤
df635c9e6d
fix(es/minifier): Fix minifier (#2711)
swc_ecma_minifier:
 - Respect `inline_prevented`.
 - Mark the LHS of an assignment pattern property as a pattern. (https://github.com/vercel/next.js/issues/30498)
2021-11-10 20:56:50 +09:00
Sriram Thiagarajan
cb689565d5
chore: Update README.md (#2693) 2021-11-10 11:09:20 +00:00
Donny/강동윤
2b2f6955f2
refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
Donny/강동윤
a90fae5696
fix(swc): Fix tests (#2707) 2021-11-10 18:08:45 +09:00
Donny
4863bee163 chore: Publish crates 2021-11-10 17:35:07 +09:00
OJ Kwon
691e5e581c
fix(es/transforms/common_js): Allow reassignment to functions exported as default (#2705)
swc_ecma_transforms_module:
 - Mark a function exported using `default` as reassignable target.
2021-11-10 17:33:44 +09:00
Donny/강동윤
4f70ee6d98
refactor: Flatten more packages (#2706) 2021-11-10 16:39:01 +09:00
Donny
158136fae9 chore: Publish crates 2021-11-10 16:16:19 +09:00
Donny/강동윤
8edd72ed73
fix(es/transforms/compat): Use _createSuper for super classes (#2699)
swc_ecma_transforms_base:
 - Add `_createSuper` helper.
 - Add `_isNativeReflectConstruct` helper.

swc_ecma_transforms_compat:
 - `classes`: Apply `_createSuper` to the super classes.
2021-11-10 16:15:03 +09:00
Donny
2be8559e35 chore: Publish crates 2021-11-10 13:58:42 +09:00
OJ Kwon
824fa24852
perf(es/transforms/compat): Migrate to VisitMut (#2696)
swc_ecma_transforms_compat:
 - `async_to_generator`: Migrate helper to `VisitMut`.
2021-11-10 13:57:56 +09:00
Donny/강동윤
687305f280
refactor: Flatten crates (#2697) 2021-11-09 20:42:49 +09:00
Donny/강동윤
bf0007bec0
feat(rplugin): Implement general AST processing plugin system (#2671)
swc_common:
 - Implement `StableAbi` for `BytePos`.
 - Implement `StableAbi` for `Span`.

rplugin:
 - Add `StableAst`.

swc_plugin_api:
 - Drop unused dependencies.

swc_ecma_plugin_ast:
 - Initialize crate.
2021-11-09 18:46:24 +09:00
Donny
797f4fff14 chore: Publish crates 2021-11-09 16:13:52 +09:00
OJ Kwon
8fe0d2583f
fix(es/transforms/compat): Apply regenerator for default function declarations (#2681)
swc_ecma_transforms_compat:
 - `regenerator`: Handle `DefaultDecl::Fn`. (Closes #2677)
2021-11-09 07:07:48 +00:00
Donny/강동윤
9824fdaae2
test(css/codegen): Add tests for parenthesis (#2691)
swc_css_codegen:
 - Ensure that parenthesis is preserved for support query. (https://github.com/vercel/next.js/issues/30570)
 - Ensure that parenthesis is preserved for media query. (https://github.com/vercel/next.js/issues/30480)
2021-11-09 15:48:38 +09:00
Donny/강동윤
22ce68cfaa
fix(swc): Don't print same error twice (#2692) 2021-11-09 15:18:11 +09:00