SWC Bot
8052d4dabd
chore: Publish crates
2023-05-17 04:53:45 +00:00
Donny/강동윤
1d3f32056c
fix(es/parser): Fix parsing of module
identifier ( #7400 )
...
**Related issue:**
- Closes #4176 .
- Closes #7372 .
2023-05-17 04:51:57 +00:00
SWC Bot
820f29ffc1
chore: Publish crates
2023-05-17 03:57:12 +00:00
Donny/강동윤
6b92eecd39
test(css/module): Add a test for a fixed issue ( #7399 )
...
**Related issue:**
- Closes #6897 .
2023-05-17 03:55:24 +00:00
SWC Bot
227c272904
chore: Publish crates
2023-05-16 12:33:08 +00:00
Donny/강동윤
eaba323581
test(es/parser): Add a test for a fixed issue ( #7398 )
...
**Related issue:**
- Closes #6976 .
2023-05-16 12:31:05 +00:00
SWC Bot
da0c612d85
chore: Publish crates
2023-05-16 05:18:57 +00:00
Donny/강동윤
3a0565f377
chore(plugin): Update rkyv
to v0.7.42
( #7397 )
2023-05-16 14:17:12 +09:00
SWC Bot
d3db7edd51
chore: Publish crates
2023-05-16 04:14:36 +00:00
Donny/강동윤
40ba242076
fix(es/codegen): Do not create duplicate source map entry ( #7309 )
2023-05-16 04:12:46 +00:00
SWC Bot
02b22f7625
chore: Publish crates
2023-05-16 03:23:16 +00:00
Donny/강동윤
f9cdd741c2
test(es/minifier): Enable more terser tests ( #7396 )
2023-05-16 03:21:08 +00:00
Donny/강동윤
4a53951fe3
chore: Publish crates
2023-05-15 13:18:22 +09:00
SWC Bot
a05e28906b
chore: Publish crates
2023-05-15 04:14:42 +00:00
OJ Kwon
05b4c11497
feat(swc_core): Expose plugin proxy to the host env ( #7391 )
2023-05-15 13:12:33 +09:00
Donny/강동윤
8e6fea8519
chore: Publish crates
2023-05-15 12:42:54 +09:00
SWC Bot
5e3d156aca
chore: Publish crates
2023-05-15 03:20:03 +00:00
OJ Kwon
bba1fad35c
feat(plugin): Add versioned wrapper struct ( #7382 )
2023-05-15 03:17:31 +00:00
SWC Bot
5d30437206
chore: Publish crates
2023-05-15 02:27:59 +00:00
Donny/강동윤
cad18fae4b
feat(es/compat): Implement auto accessors fully ( #7370 )
...
**Related issue:**
- Closes #7193 .
2023-05-15 02:26:07 +00:00
SWC Bot
a2577adffa
chore: Publish crates
2023-05-14 06:08:33 +00:00
OJ Kwon
e3868a7e00
feat(swc_core): Allow native env plugin to use memory cache ( #7390 )
...
**Description:**
I just realized there could be some case who'll want plugin in native env, but without filesystem cache. If there's a custom cache implementation, it'll make a conflict to swc's caching mechanism since swc does not expose any interface to the its cache.
PR takes simple approach to expose another feature to opt in native env with memory cache for those case. Ideally we should make `plugin_transform_host_native` to not to opt-in any cache, and then make `swc_plugin_runner` to run without any cache implementation - but that'll be a breaking changes with few more involved changes.
2023-05-14 06:06:24 +00:00
SWC Bot
a71d5b2180
chore: Publish crates
2023-05-14 05:23:11 +00:00
Austaras
fa7a3521f5
fix(es/parser): Fix >=
with type instantiate ( #7388 )
2023-05-14 05:21:13 +00:00
SWC Bot
e88ae37a0c
chore: Publish crates
2023-05-12 00:47:49 +00:00
OJ Kwon
9b3a41c57d
refactor(common): Derive ByteCheck
for ArcString
( #7380 )
2023-05-12 09:45:59 +09:00
SWC Bot
7655aaa42a
chore: Publish crates
2023-05-11 14:02:24 +00:00
Donny/강동윤
166e77c2b3
chore(es): Enable tracing spans for release builds ( #7379 )
2023-05-11 13:59:53 +00:00
SWC Bot
65785bdf21
chore: Publish crates
2023-05-10 04:19:21 +00:00
Donny/강동윤
041b491466
feat(es/parser): Implement explicit resource management ( #7322 )
...
**Description:**
- Add `UsingDecl`.
- Add `UsingDecl` to `Decl`.
- Rename `VarDeclOrPat` to `ForHead`.
- Add `UsingDecl` to `ForHead`.
- Implement parser for using declarations.
**Related issue:**
- #7316 .
2023-05-10 04:16:44 +00:00
SWC Bot
6432e1f5c5
chore: Publish crates
2023-05-10 03:33:12 +00:00
Donny/강동윤
1dced17998
fix(es/minifier): Fix remapping of vars upon inlining ( #7362 )
...
**Related issue:**
- Closes #7331 .
2023-05-10 03:31:15 +00:00
SWC Bot
e1c9182e1c
chore: Publish crates
2023-05-09 05:47:00 +00:00
Donny/강동윤
97ec259144
feat(es/compat): Partially support auto accessors ( #7364 )
...
**Description:**
I'll create a follow-up PR for a full support for auto accessors.
**Related issue:**
- #7193 .
2023-05-09 05:45:16 +00:00
SWC Bot
d8a3310543
chore: Publish crates
2023-05-09 03:04:13 +00:00
SWC Bot
7fc9b00443
chore: Publish crates
2023-05-08 03:40:27 +00:00
Donny/강동윤
9c052db796
feat(es/compat): Support export class
from stage 3 decorator pass ( #7363 )
...
**Related issue:**
- Closes #7358 .
2023-05-08 03:38:43 +00:00
SWC Bot
aef5ac4812
chore: Publish crates
2023-05-06 03:56:38 +00:00
OJ Kwon
d2c1f45f5a
feat(plugin): Enable bytecheck ( #7280 )
...
**Description:**
Second attempt to enable bytecheck. This PR does not have versioned struct yet, just enabling bytecheck wherever possible. Also, it is for the ast only yet, so transform metadata and others might need this later.
PR seems to be passing all the ci, but as we've experienced before, there might be some unexpected outcomes with the release. Maybe better to hold this until clear https://github.com/swc-project/swc/issues/7238 , then land as a separate release.
2023-05-06 03:54:25 +00:00
SWC Bot
b60a33001a
chore: Publish crates
2023-05-05 08:22:21 +00:00
Cong-Cong Pan
b180d09e1d
fix(xml/codegen): Escape <
and >
in child ( #7351 )
2023-05-05 08:20:09 +00:00
SWC Bot
5e595e7644
chore: Publish crates
2023-05-05 07:28:53 +00:00
OJ Kwon
4e278befcf
build(cargo): Update wasmer
to v3.3
( #7352 )
2023-05-05 07:26:38 +00:00
SWC Bot
e9f3371c5f
chore: Publish crates
2023-05-02 02:13:33 +00:00
Donny/강동윤
e0de83e862
fix(es/compat): Fix is_setter
in parameters
pass ( #7348 )
...
**Description:**
x-ref: https://vercel.slack.com/archives/C02HY34AKME/p1682667306929829
2023-05-02 02:11:42 +00:00
SWC Bot
11c1f2c7b3
chore: Publish crates
2023-04-30 12:45:00 +00:00
OJ Kwon
91a3fbe460
refactor(plugin/runner): Refine cache location ( #7346 )
2023-04-30 21:43:13 +09:00
Donny/강동윤
afe94b72e5
chore: Publish crates
2023-04-29 22:57:05 +09:00
SWC Bot
4ad18beca3
chore: Publish crates
2023-04-29 13:48:25 +00:00
Donny/강동윤
d061d295ff
fix(es/typescript): Fix typescript strip pass ( #7342 )
...
**Related issue:**
- Reverts #7196 .
- https://github.com/vercel/turbo/issues/4747 .
2023-04-29 22:46:36 +09:00
SWC Bot
767284e27f
chore: Publish crates
2023-04-29 13:28:01 +00:00
magic-akari
985f0cad06
fix(es/parser): Parse decorators after export
( #7340 )
2023-04-29 22:26:13 +09:00
SWC Bot
b80ceaed03
chore: Publish crates
2023-04-29 13:21:14 +00:00
Donny/강동윤
246300ae25
feat(es/minifier): Drop expressions using sequential inliner ( #6936 )
2023-04-29 22:19:00 +09:00
SWC Bot
098b9387c1
chore: Publish crates
2023-04-29 13:00:37 +00:00
Donny/강동윤
d6999ba1ac
fix(plugin/runner): Revert #7341 ( #7344 )
...
**Description:**
This reverts commit 245163a778
.
2023-04-29 21:58:48 +09:00
SWC Bot
2c7f94f1ac
chore: Publish crates
2023-04-29 11:16:12 +00:00
OJ Kwon
245163a778
feat(plugin/runner): Improve caching ( #7341 )
...
**Description:**
Previously disabled cache (storing compiled module in memory) still doesn't work, so falling back to storing raw bytes and create new module each time. This is the same behavior to the wasm build's approach.
Also minor improved caching root to include more information. Previous rustc didn't seem to work unfortunately, so removed but instead using plugin_runner's version.
2023-04-29 11:14:21 +00:00
SWC Bot
e7911ee594
chore: Publish crates
2023-04-26 01:25:19 +00:00
Samuel Eisenhandler
7e99e5fd2c
fix(es/codegen): Emit type arguments for call expressions ( #7335 )
2023-04-26 01:23:13 +00:00
Donny/강동윤
1ecc4385b6
chore: Publish crates
2023-04-25 19:25:16 +09:00
SWC Bot
d67f9bfd75
chore: Publish crates
2023-04-25 10:06:32 +00:00
magic-akari
caee073935
feat(es/module): Add export_interop_annotation
flag ( #7330 )
...
**Related issue:**
- https://github.com/vercel/next.js/issues/48801
2023-04-25 10:04:28 +00:00
Donny/강동윤
897099b970
chore: Publish crates
2023-04-25 09:30:08 +09:00
SWC Bot
5f55e04c4d
chore: Publish crates
2023-04-24 15:01:16 +00:00
Donny/강동윤
603f22de76
test(es): Update tsc test suite ( #7323 )
2023-04-24 14:59:19 +00:00
SWC Bot
923ed13b6a
chore: Publish crates
2023-04-24 09:25:42 +00:00
OJ Kwon
577f81ec40
fix(common): Workaround the Arc
and rkyv
issue ( #7321 )
...
**Description:**
Attempt to workaround #7238 .
Originally I thought this is related with oom or memory layout, then realized actual deserialization error occurs in weird position - it tries to deserialize BytePos (which is obvious type) and it fails. It made me think maybe a property next to the struct layout have some unexpected behavior, notably Arc<String>.
PR applies same workaround as Atom does, and it seems to at least pass swc-coverage-instrument's usecases. May need bit more verification with other plugins to see if we can call this out as reliable workaround.
2023-04-24 09:23:31 +00:00
SWC Bot
51f3840609
chore: Publish crates
2023-04-24 05:25:39 +00:00
Fy
66b5b110bf
fix(es/compat): Transform curried function call with optional chaining ( #7313 )
...
**Related issue:**
- Closes #7312
2023-04-24 05:23:53 +00:00
SWC Bot
5400648de8
chore: Publish crates
2023-04-24 04:17:24 +00:00
David Sherret
0ca05d8b69
fix(es/codegen): Fix codegen of TsModuleDecl
( #7319 )
2023-04-24 04:15:08 +00:00
SWC Bot
caffb9593c
chore: Publish crates
2023-04-24 03:28:05 +00:00
Donny/강동윤
2c441f5c8d
chore: Publish crates
2023-04-21 15:30:05 +09:00
SWC Bot
f2a38e808a
chore: Publish crates
2023-04-21 06:13:37 +00:00
Donny/강동윤
6f81cb9c32
fix(es/parser): Fix handling of in
and out
of typescript ( #7308 )
...
**Related issue:**
- Closes #7305 .
2023-04-21 15:11:18 +09:00
SWC Bot
1812d9ef7f
chore: Publish crates
2023-04-21 04:00:12 +00:00
Donny/강동윤
e7f7b01f59
fix(es): Fix a crash related to source map ( #7307 )
...
**Related issue:**
- Reverts #7229 .
- Closes #7301 .
2023-04-21 03:58:24 +00:00
SWC Bot
c8e6774070
chore: Publish crates
2023-04-20 08:28:29 +00:00
magic-akari
38dfb91ebc
fix(es/helpers): Remove unnecessary parameters in helper_expr!
macro ( #7296 )
...
**Description:**
We have moved to snake_case, so the last parameter of helper_expr is unnecessary.
2023-04-20 08:26:34 +00:00
SWC Bot
af8e158948
chore: Publish crates
2023-04-20 07:35:26 +00:00
Donny/강동윤
9c279b802b
fix(es/modules): Support jsc.baseUrl
without jsc.paths
( #7302 )
...
**Related issue:**
- Closes #1324 .
2023-04-20 07:33:29 +00:00
SWC Bot
35ad9234e9
chore: Publish crates
2023-04-20 02:13:02 +00:00
Donny/강동윤
38495a9835
test(es/compat): Add a test for a wrong issue ( #7300 )
...
**Related issue:**
- Closes #7290 .
2023-04-20 11:10:25 +09:00
SWC Bot
7fd1e93434
chore: Publish crates
2023-04-19 21:54:39 +00:00
Leah
3422923cb0
fix(testing): Fix path normalization on windows for testing diffs ( #7299 )
2023-04-19 21:52:40 +00:00
SWC Bot
ffa76894fd
chore: Publish crates
2023-04-19 14:28:50 +00:00
SWC Bot
095e0ad034
chore: Publish crates
2023-04-19 12:30:15 +00:00
OJ Kwon
39d415cc16
build(cargo): bump up wasmer ( #7294 )
...
**Description:**
Maybe fix? https://github.com/swc-project/swc/issues/7238
https://github.com/wasmerio/wasmer/issues/3764#issuecomment-1514084441
2023-04-19 12:28:31 +00:00
SWC Bot
0e4d764f90
chore: Publish crates
2023-04-19 11:27:00 +00:00
Austaras
7a00f2e954
fix(es/resolver): Hoist parameter in arrow and constructor ( #7292 )
...
**Related issue:**
- Closes #7248 .
---
Co-authored-by: Donny/강동윤 <kdy1997.dev@gmail.com>
2023-04-19 11:25:02 +00:00
SWC Bot
0d4fe74ab5
chore: Publish crates
2023-04-19 07:24:45 +00:00
Donny/강동윤
0aab90c005
fix(es/minifier): Fix a inliner bug related to Script
( #7288 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/7287 .
2023-04-19 07:22:48 +00:00
SWC Bot
b68466c0d9
chore: Publish crates
2023-04-19 06:26:19 +00:00
Donny/강동윤
bc83cb2ecf
perf(preset-env): Update static map ( #7293 )
...
**Description:**
x-ref: https://vercel.slack.com/archives/C02HY34AKME/p1681811874650839
2023-04-19 06:24:23 +00:00
SWC Bot
1c530b8919
chore: Publish crates
2023-04-18 02:46:59 +00:00
Donny/강동윤
248fd374e6
perf(es/react): Don't use regex ( #7284 )
...
**Description:**
It's causing a performance problem in concurrent scenarios.
x-ref: https://linear.app/vercel/issue/WEB-921
x-ref: https://vercel.slack.com/archives/C02HY34AKME/p1681757237489689
2023-04-18 02:45:08 +00:00
Donny/강동윤
e757e65393
chore: Publish crates
2023-04-16 13:23:28 +09:00
SWC Bot
f7355420dd
chore: Publish crates
2023-04-15 14:52:40 +00:00
Donny/강동윤
4c06a56e52
fix(es/minifier): Use UTF16 length for str.length
( #7275 )
...
**Related issue:**
- Closes #7274 .
2023-04-15 14:50:52 +00:00
SWC Bot
d90d14fc23
chore: Publish crates
2023-04-15 13:58:51 +00:00
Donny/강동윤
5d3313aa7e
feat(es/modules): Use function instead of arrow function unconditionally ( #7273 )
2023-04-15 13:57:00 +00:00
SWC Bot
9e752bd1aa
chore: Publish crates
2023-04-15 04:21:44 +00:00
Austaras
93a264c9a4
fix(es/renamer): Ensure that param and function body are in same scope ( #7271 )
...
**Description:**
The problem arises in L235 of swc_ecma_transforms_base/src/rename/mod.rs
```rs
unit!(visit_mut_fn_decl, FnDecl, true);
```
which calls `get_map` and evals to
```rs
node.visit_children_with(&mut v);
```
with `FnDecl` and `Analyzer` in L132. However, in `Analyzer`, a visit to raw function was not overloaded, so function arguments and function body are considered different scopes.
**Related issue:**
- Closes #7261 .
2023-04-15 04:19:52 +00:00
SWC Bot
42c4b07f34
chore: Publish crates
2023-04-15 03:29:04 +00:00
IWANABETHATGUY
c4cce12758
build(cargo): Update bitflags
to v2 ( #7270 )
2023-04-15 03:26:56 +00:00
SWC Bot
db9320c051
chore: Publish crates
2023-04-15 02:19:38 +00:00
Cong-Cong Pan
635bf8116b
refactor(es/parser): Remove ::
token as it's not used ( #7268 )
2023-04-15 02:17:37 +00:00
SWC Bot
0e1435a97f
chore: Publish crates
2023-04-15 01:32:33 +00:00
SWC Bot
cfc53fe0df
chore: Publish crates
2023-04-15 00:36:58 +00:00
limerick
219a738a75
fix(es): Allow extra comments after sourceMappingURL
( #7262 )
2023-04-15 00:35:04 +00:00
SWC Bot
5f0660667f
chore: Publish crates
2023-04-14 23:50:14 +00:00
Robin Appelman
beefdd459c
fix(es/loader): Fix browser overwrites not applying correctly ( #7243 )
2023-04-14 23:48:22 +00:00
SWC Bot
a9e7efc129
chore: Publish crates
2023-04-14 22:55:55 +00:00
Donny/강동윤
5629e6b529
chore: Publish crates
2023-04-13 20:23:18 +09:00
SWC Bot
e618d4de6a
chore: Publish crates
2023-04-13 11:12:23 +00:00
SWC Bot
e6cffb7581
chore: Publish crates
2023-04-13 08:41:47 +00:00
OJ Kwon
ff3decc7db
build(plugin): Update rkyv
( #7257 )
2023-04-13 08:39:23 +00:00
SWC Bot
fb9eed24ad
chore: Publish crates
2023-04-13 07:00:40 +00:00
Donny/강동윤
1fe5c3a803
feat(es): Use minify.format.ascii_only
if output.charset
is not specified ( #7258 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/7240 .
2023-04-13 06:58:43 +00:00
SWC Bot
8fc527343b
chore: Publish crates
2023-04-13 05:52:04 +00:00
OJ Kwon
6bd58cbcfd
refactor(plugin): Remove bytecheck
flag ( #7256 )
2023-04-13 05:49:58 +00:00
SWC Bot
604667d522
chore: Publish crates
2023-04-13 03:25:23 +00:00
Donny/강동윤
a44fea1ec8
fix(es/minifier): Fix handling of optional chaining when hoist_props
is enabled ( #7246 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/7228 .
2023-04-13 03:23:29 +00:00
SWC Bot
dd56100585
chore: Publish crates
2023-04-12 13:23:23 +00:00
limerick
f0e3b1d09a
feat(es): Provide more information when loading of input source map failed ( #7249 )
2023-04-12 13:21:25 +00:00
SWC Bot
8e5cb60183
chore: Publish crates
2023-04-12 12:33:03 +00:00
OJ Kwon
efad714983
feat(plugin): Enable validation ( #7250 )
2023-04-12 12:30:38 +00:00
SWC Bot
d4782ee526
chore: Publish crates
2023-04-12 11:46:53 +00:00
magic-akari
2e947e7aeb
fix(es/compat): Handle export function in reserved_word
( #7251 )
2023-04-12 11:44:49 +00:00
SWC Bot
f31f67c7fb
chore: Publish crates
2023-04-11 07:05:27 +00:00
Donny/강동윤
e35097fd8c
fix(es/codegen): Respect ascii_only
for identifiers ( #7247 )
...
**Related issue:**
- https://github.com/swc-project/swc/issues/7240 .
2023-04-11 07:03:19 +00:00
SWC Bot
33ff2ba7c4
chore: Publish crates
2023-04-11 04:50:23 +00:00
Donny/강동윤
559d1202bc
feat(es/minifier): Support PURE
comment of seq exprs ( #7245 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/7241 .
2023-04-11 04:48:11 +00:00
SWC Bot
a0e193d177
chore: Publish crates
2023-04-11 03:47:41 +00:00
Donny/강동윤
70b86dbe37
refactor(plugin/runner): Fix clippy warnings ( #7244 )
2023-04-11 03:45:49 +00:00
SWC Bot
80e125a386
chore: Publish crates
2023-04-11 02:13:17 +00:00
David Sherret
6614886192
fix(es/parser): Parse const
type parameters in arrow function expressions ( #7242 )
2023-04-11 02:11:04 +00:00
SWC Bot
2a662350e6
chore: Publish crates
2023-04-10 10:47:52 +00:00
Donny/강동윤
01db30f91e
fix(es/parser): Reset ctx for cond while parsing a stmt ( #7232 )
2023-04-10 10:45:49 +00:00
SWC Bot
c06690ec9c
chore: Publish crates
2023-04-10 09:31:19 +00:00
Yukang
c6659183a6
fix(es): Fix a crash related to an empty source map ( #7229 )
2023-04-10 09:28:15 +00:00
SWC Bot
ab9e793fa8
chore: Publish crates
2023-04-10 08:48:13 +00:00
Yukang
b1c40a411f
fix(es/parser): Use a hard error for missing r-paren in an if stmt ( #7223 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/7104 .
2023-04-10 08:46:01 +00:00
SWC Bot
0fe90881b5
chore: Publish crates
2023-04-10 07:03:43 +00:00
Donny/강동윤
695ce060e9
test(es/plugin): Enable E2E test again ( #7236 )
2023-04-10 07:01:56 +00:00
Donny/강동윤
a24f3554ce
chore: Publish crates
2023-04-10 14:04:04 +09:00
SWC Bot
8741fdb126
chore: Publish crates
2023-04-10 04:55:59 +00:00
Donny/강동윤
b868ed02a3
refactor(plugin/runner): Fix publish action ( #7234 )
2023-04-10 13:54:08 +09:00
Donny/강동윤
bc676e9f0f
chore: Publish crates
2023-04-10 13:14:30 +09:00
SWC Bot
2204b7809b
chore: Publish crates
2023-04-10 03:42:39 +00:00
OJ Kwon
56bdacc72d
feat(plugin/runner): Update wasmer
to v3
( #7197 )
...
**Description:**
This PR reattempts https://github.com/swc-project/swc/pull/5456 .
Most of the changes are for the breaking changes of wasmer@3, as well as enabling rkyv's strict mode (https://github.com/swc-project/swc/pull/6922 ). This could not be seperated since wasmer@3 enables strict mode by default without a way to turn it off.
There are a couple of changes worth noting:
- Disabling in-memory module lookup: https://github.com/swc-project/swc/pull/7197/files#diff-3bda5def6ce2b7553c3b3a5ad241c0bdb7021e67b7de1e594df4cd5a54d403b3R154-R159
- Disabling plugin_runner in bindings_wasm: https://github.com/swc-project/swc/pull/7197/files#diff-dc3ded556a1fd709a129acd588e5eda651b842c6acc3f5340d40088a1f927facR310-R312
- Skipping plugin compat test: https://github.com/swc-project/swc/pull/7197/files#diff-531197dfcefba05faca53f0cf442ecc2dc6b59d5ead01979f5ffb912aa36249aR64-R66
2023-04-10 03:40:25 +00:00
Donny/강동윤
e116fedd22
chore: Publish crates
2023-04-10 11:55:00 +09:00
SWC Bot
bb80c659b3
chore: Publish crates
2023-04-07 01:46:34 +00:00
Donny/강동윤
e241201bf7
fix(es/testing): Ensure that we call fold_program
( #7222 )
2023-04-07 01:44:50 +00:00
SWC Bot
68751600ae
chore: Publish crates
2023-04-06 14:47:27 +00:00
Donny/강동윤
a7a53c6208
feat(es): Expose stage 3 decorator ( #7220 )
2023-04-06 14:45:21 +00:00
SWC Bot
4b9cfbb4dd
chore: Publish crates
2023-04-06 13:48:37 +00:00
Donny/강동윤
f5c62fbbf8
fix(es/compat): Fix finally
handling of generator
( #7215 )
...
**Description:**
Update generator implementation to match
e83d61398e/src/compiler/transformers/generators.ts
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/5913 .
2023-04-06 09:37:21 +00:00
SWC Bot
150e54dc3a
chore: Publish crates
2023-04-06 08:56:53 +00:00
magic-akari
29bf1760be
fix(es/typescript): Fix computation of enum bits ( #7219 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/7218 .
2023-04-06 08:54:59 +00:00
SWC Bot
352aa7a3ea
chore: Publish crates
2023-04-06 05:30:13 +00:00
SWC Bot
c6b28f91cc
chore: Publish crates
2023-04-05 05:17:51 +00:00
Donny/강동윤
3f61638cbf
refactor(macros/ast-node): Drop darling
to reduce compile time ( #7214 )
2023-04-05 05:15:50 +00:00
SWC Bot
a22a8a70ed
chore: Publish crates
2023-04-05 04:37:50 +00:00
Donny/강동윤
73bc29eeb0
fix(es/minifier): Don't remove used var decl ( #7200 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/7194 .
2023-04-05 04:35:37 +00:00
SWC Bot
eb127df8cc
chore: Publish crates
2023-04-04 10:29:29 +00:00
Donny/강동윤
5aee7abfc6
chore: Publish crates
2023-04-04 14:46:04 +09:00
SWC Bot
c8fca9a054
chore: Publish crates
2023-04-04 03:07:51 +00:00
magic-akari
a13a78e3fe
feat(es/helpers): Use named export and unify import path ( #7182 )
...
**BREAKING CHANGE:**
Breaking changes for `@swc/helpers`. A new major version `0.5.0` is required.
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/7157
2023-04-04 03:05:47 +00:00
SWC Bot
06bacca90c
chore: Publish crates
2023-04-04 02:24:40 +00:00
Adam Jahn
bfe654438f
fix(swc_core): Fix a feature name ( #7198 )
2023-04-04 02:22:47 +00:00
SWC Bot
ad7daddeb8
chore: Publish crates
2023-04-04 01:50:35 +00:00
HeYunfei
ddfbc93624
fix(es/typescript): Mark A
as a type in export { type A }
( #7196 )
2023-04-04 01:47:58 +00:00
SWC Bot
ae2362e97b
chore: Publish crates
2023-04-03 08:15:39 +00:00
Donny/강동윤
7a863ad18f
feat(es/compat): Implement stage 3 decorator, without auto accessor ( #6950 )
2023-04-03 08:13:12 +00:00
SWC Bot
a679dbe9aa
chore: Publish crates
2023-04-02 22:16:24 +00:00
Marvin Hagemeister
414e66910d
fix(es/parser): Fix infinite loop on jsx in js ( #7191 )
2023-04-02 22:14:29 +00:00
SWC Bot
48843455fa
chore: Publish crates
2023-04-02 03:49:33 +00:00
limerick
3e6a1869e8
fix(es): Allow missing .map
file ( #7141 )
2023-04-02 03:47:39 +00:00
SWC Bot
f73f96dd94
chore: Publish crates
2023-04-02 00:24:57 +00:00
OJ Kwon
976667f7d9
feat(plugin/runner): Improve cache path ( #7188 )
...
**Description:**
This PR is minor improvement, non breaking changes to cache path for the plugin. In short, it tries to combine rustc version if available to expand. `option_env!` supposed to embed build time rustc version. It'd be ideal if we could match between plugin's as well, but I doubt if we could before actually load plugin.
2023-04-02 00:22:58 +00:00
SWC Bot
fa153348c9
chore: Publish crates
2023-04-01 06:17:38 +00:00
Donny/강동윤
df7b4e71d2
feat(css/modules): Preserve spans of CSS class names ( #7185 )
...
**Description:**
x-ref: https://vercel.slack.com/archives/D03JF6EG45S/p1680280923015879
2023-04-01 06:15:25 +00:00
SWC Bot
b7366fd5ce
chore: Publish crates
2023-04-01 05:42:08 +00:00
magic-akari
98f14931e7
fix(es/modules): Hint nodejs for multiple export *
( #7184 )
2023-04-01 05:40:25 +00:00
SWC Bot
b94fbed4c9
chore: Publish crates
2023-03-31 06:17:53 +00:00
magic-akari
3ca954b9f9
fix(es/helpers): Use snake_case for helpers ( #7147 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/7144 .
- Closes https://github.com/swc-project/swc/issues/7118 .
2023-03-31 15:15:21 +09:00
SWC Bot
d61e84c5ce
chore: Publish crates
2023-03-31 04:03:04 +00:00
SWC Bot
7d69b79a9e
chore: Publish crates
2023-03-31 03:23:35 +00:00
magic-akari
0a80e0506b
fix(es/compat): Handle shorthand object prop while renaming ( #7176 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/7174 .
2023-03-31 03:21:39 +00:00
Donny/강동윤
a1b7e1358a
chore: Publish crates
2023-03-30 17:59:01 +09:00
SWC Bot
bf1e55d27b
chore: Publish crates
2023-03-30 08:48:31 +00:00
magic-akari
23fb8c5563
fix(es/compat): Fix the position for temp var injection ( #7171 )
2023-03-30 17:41:55 +09:00
SWC Bot
6a015550ba
chore: Publish crates
2023-03-30 08:40:29 +00:00
magic-akari
065d11cb9b
fix(es/compat): Handle import/export in reserved_word
( #7165 )
2023-03-30 17:38:35 +09:00
SWC Bot
b1fb6b655f
chore: Publish crates
2023-03-30 08:08:20 +00:00
Donny/강동윤
0259a7465f
build(cargo): Update rustc
to nightly-2023-03-20
( #7170 )
...
**Description:**
This PR also updates `rkyv` to `=0.7.40`.
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6807 .
2023-03-30 08:06:02 +00:00
SWC Bot
44062d6fa5
chore: Publish crates
2023-03-29 08:50:54 +00:00
Donny/강동윤
12546c853a
build(cargo): Revert rustc upgrade ( #7162 )
...
**Description:**
The `rkyv` bug is not fixed.
2023-03-29 17:48:45 +09:00
Donny/강동윤
4d7491d477
chore: Publish crates
2023-03-29 16:05:50 +09:00
SWC Bot
d74103739a
chore: Publish crates
2023-03-29 06:26:30 +00:00
Donny/강동윤
e445502072
build(cargo): Update rustc
to nightly-2023-03-28
( #7154 )
...
**Description:**
This PR also updates `rkyv` to `=0.7.40`.
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6807 .
2023-03-29 06:24:19 +00:00
SWC Bot
fca18b2c6b
chore: Publish crates
2023-03-28 08:00:32 +00:00
Donny/강동윤
6f0bf665c2
fix(css/compat): Remove usage of box_syntax
( #7153 )
2023-03-28 16:58:08 +09:00
SWC Bot
03f7a2d8d7
chore: Publish crates
2023-03-27 06:41:36 +00:00
Fy
05a2815e6c
feat(es/react): Support script within automatic runtime ( #7126 )
...
**Description:**
Inject `const { jsx: _jsx} = require("react/jsx-runtime")` when sourceType is `script`
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/7119 .
2023-03-27 06:39:37 +00:00
SWC Bot
47f15f9f28
chore: Publish crates
2023-03-27 06:04:11 +00:00
Donny/강동윤
5e58b3e5f6
feat(css/parser): Add legacy_ie
to the ParserConfig
( #7109 )
2023-03-27 15:02:18 +09:00
SWC Bot
8fe52a12b3
chore: Publish crates
2023-03-27 04:31:35 +00:00
Donny/강동윤
30bc086052
refactor(ast): Make serde optional ( #7138 )
...
**Description:**
Turbopack does not use `serde` of swc AST types.
2023-03-27 13:28:42 +09:00
SWC Bot
3f2ba68d4b
chore: Publish crates
2023-03-24 04:48:48 +00:00
Donny/강동윤
28261985b0
chore(cargo): Refactor Cargo.toml
to reduce merge conflict ( #7139 )
2023-03-24 13:46:42 +09:00
SWC Bot
6635d54128
chore: Publish crates
2023-03-24 02:42:16 +00:00
Donny/강동윤
915f747cb7
refactor(es/parser): Remove EnumKind
to reduce compile time ( #7137 )
2023-03-24 11:40:26 +09:00
SWC Bot
4eef5532a4
chore: Publish crates
2023-03-23 09:42:52 +00:00
Donny/강동윤
b13eb4c811
fix(fast-graph): Use fxhash instead of ahash to make iteration order consistent ( #7133 )
...
**Description:**
Some operations of `petgraph` assumes the same iteration order.
2023-03-23 18:32:47 +09:00
SWC Bot
b178ff5661
chore: Publish crates
2023-03-23 09:19:33 +00:00
Donny/강동윤
2154a3f117
refactor(macros): Reduce compile time ( #7132 )
...
**Description:**
- Reduce usage of generics in proc-macros.
- Remove needless operations like parsing tokens as an AST node.
2023-03-23 18:16:50 +09:00
SWC Bot
d1ae6bb3d9
chore: Publish crates
2023-03-23 09:14:02 +00:00
Donny/강동윤
150c2b6fba
fix(css/codegen): Preserve raw
of numbers ( #7131 )
...
**Description:**
x-ref: https://vercel.slack.com/archives/C03EWR7LGEN/p1679513958649249
2023-03-23 09:12:07 +00:00
SWC Bot
42f71431bf
chore: Publish crates
2023-03-23 05:19:01 +00:00
Donny/강동윤
dfe1a3f496
refactor(es): Remove needless build scripts to reduce compile time ( #7129 )
2023-03-23 05:15:59 +00:00
SWC Bot
e77bc0a62f
chore: Publish crates
2023-03-23 04:39:01 +00:00
Donny/강동윤
08fa94fc73
refactor(es/codegen): Extract code from generic functions to reduce compile time ( #7127 )
2023-03-23 04:37:02 +00:00
SWC Bot
f81ac50c2a
chore: Publish crates
2023-03-23 04:00:14 +00:00
magic-akari
5d7acfd9cb
fix(es/react): Respect import_source
in new jsx ( #7128 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6987 .
2023-03-23 03:58:28 +00:00
SWC Bot
aaaa9caafc
chore: Publish crates
2023-03-22 12:27:14 +00:00
Crayon
1e4abcb11d
doc(es): Fix doc url ( #7123 )
2023-03-22 12:25:17 +00:00
SWC Bot
0195f536ef
chore: Publish crates
2023-03-22 11:50:07 +00:00
Fy
d50689eab0
fix(es/visit): Fix handling of Program
of AndThen
( #7120 )
2023-03-22 11:48:13 +00:00
SWC Bot
8c5a1f140a
chore: Publish crates
2023-03-22 06:33:46 +00:00
Donny/강동윤
6d9763e8c0
fix(es/renamer): Don't use symbols used by declarations if eval
exists ( #7116 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6971 .
- Closes https://github.com/swc-project/swc/issues/7094 .
2023-03-22 06:31:43 +00:00
Donny/강동윤
737f2adc0f
chore: Publish crates
2023-03-22 12:00:04 +09:00
SWC Bot
e37666bb6e
chore: Publish crates
2023-03-22 02:26:23 +00:00
Donny/강동윤
610e1bb581
fix(es/minifier): Don't inline into arrow heads ( #7099 )
...
**Related issue:**
- https://github.com/vercel/next.js/issues/47005
2023-03-22 02:24:13 +00:00
SWC Bot
1aa9a98b27
chore: Publish crates
2023-03-21 09:29:42 +00:00
Donny/강동윤
2bc631df87
fix(es/compat): Don't modify private fields from reserved_words
pass ( #7113 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/7106 .
2023-03-21 09:27:31 +00:00
SWC Bot
212af9b0a7
chore: Publish crates
2023-03-21 08:48:30 +00:00
Donny/강동윤
6a570a334c
fix(es/ast): Fix EqIgnoreSpan
impl of Number
( #7112 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/7111 .
2023-03-21 08:46:22 +00:00
SWC Bot
39d47b8c62
chore: Publish crates
2023-03-21 08:06:42 +00:00
SWC Bot
cda09e44c3
chore: Publish crates
2023-03-21 07:21:46 +00:00
Crayon
dd2b16db9e
fix(es/parser): Fix parsing of static accessors ( #7108 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/7107 .
2023-03-21 07:19:45 +00:00
SWC Bot
6e9be45ab9
chore: Publish crates
2023-03-21 02:59:40 +00:00
Chen Yangjian
6a1201cfc4
fix(es/minifier): Pass keep_*
in config to compress
and mangle
( #7102 )
2023-03-21 02:57:57 +00:00
SWC Bot
3315419038
chore: Publish crates
2023-03-20 14:17:19 +00:00
Vincent Ricard
df09d2fd4b
feat(css/minifier) Follow the CSS spec more rigorously ( #6291 )
...
**Description:**
Full refactor of the "calc" simplification to be more compliant with the spec.
2023-03-20 14:14:51 +00:00
SWC Bot
f40175b960
chore: Publish crates
2023-03-20 05:30:14 +00:00
Austaras
f250f243cb
refactor(es/fixer): Move comments with the insertion order ( #7097 )
2023-03-20 05:28:08 +00:00
SWC Bot
85c51a81e7
chore: Publish crates
2023-03-20 02:03:09 +00:00
Austaras
c114f006b4
refactor(es/resolver): Make syntax context for unresolved and top-level stable ( #7096 )
2023-03-20 11:01:19 +09:00
SWC Bot
d6cc123d62
chore: Publish crates
2023-03-19 02:59:07 +00:00
Austaras
0f09e356c3
feat(es/resolver): Make scope context identical to the vars ( #7095 )
2023-03-19 11:57:14 +09:00
Donny/강동윤
4006df1665
chore: Publish crates
2023-03-17 16:12:14 +09:00
SWC Bot
17356bca25
chore: Publish crates
2023-03-17 03:24:05 +00:00
Anders Kaseorg
493a4f7042
fix(es/minifier): Remove wrong optimization of new RegExp(…)
( #7091 )
2023-03-17 03:22:02 +00:00
SWC Bot
8902741084
chore: Publish crates
2023-03-17 02:40:31 +00:00
magic-akari
8353accb13
fix(es/codegen): Emit type_params
for TsConstructSignatureDecl
( #7080 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/7079 .
2023-03-17 02:38:45 +00:00
SWC Bot
32b4d7b8ad
chore: Publish crates
2023-03-16 09:40:18 +00:00
Chen Yangjian
00869147d3
fix(es/minifier): Accept keep_fnames
and keep_classnames
( #7090 )
2023-03-16 09:38:06 +00:00
SWC Bot
5f4fea2a5b
chore: Publish crates
2023-03-16 03:37:09 +00:00
magic-akari
7b491a69a5
fix(es/react): Align to babel@8
behavior ( #7081 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/7044 .
2023-03-16 03:35:17 +00:00
SWC Bot
60ccdab60e
chore: Publish crates
2023-03-16 02:20:24 +00:00
Justin Ridgewell
1c254b1c44
fix(testing): Ignore non_snake_case
for generated test names ( #7087 )
2023-03-16 11:18:28 +09:00
Donny/강동윤
60f74ea076
fix(css/parser): Fix parsing of :global(> *)
( #7082 )
2023-03-16 11:17:02 +09:00
SWC Bot
b14e6b9e54
chore: Publish crates
2023-03-15 02:33:33 +00:00
Donny/강동윤
86295ba8f2
fix(es/minifier): Preserve delete
of unresolved variables ( #7072 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/7045 .
2023-03-15 02:31:08 +00:00
SWC Bot
769ebaf7c3
chore: Publish crates
2023-03-14 04:58:19 +00:00
Donny/강동윤
963c460613
refactor: Fix lints using clippy from nightly-2023-03-13
( #6920 )
2023-03-14 04:56:21 +00:00
SWC Bot
cef9515025
chore: Publish crates
2023-03-14 03:49:51 +00:00
SWC Bot
afe5c70f44
chore: Publish crates
2023-03-14 01:21:14 +00:00
Donny/강동윤
7849a2d75d
fix(css/codegen): Respect raw
of Str
( #7078 )
2023-03-14 01:19:09 +00:00
SWC Bot
6bf5f03884
chore: Publish crates
2023-03-13 08:34:46 +00:00
Donny/강동윤
f854d51343
perf(es/lexer): Use jump table for skip_space
( #7073 )
2023-03-13 08:32:49 +00:00
Donny/강동윤
9c29666402
chore: Publish crates
2023-03-13 13:30:09 +09:00
SWC Bot
8ab307c79a
chore: Publish crates
2023-03-13 04:03:35 +00:00
magic-akari
11d4874a2e
fix(es): Respect the value of assumptions ( #7065 )
2023-03-13 13:01:30 +09:00
SWC Bot
3da6d18d47
chore: Publish crates
2023-03-13 03:27:50 +00:00
Donny/강동윤
97945d02b8
chore(ci): Fix CI ( #7070 )
2023-03-13 12:26:07 +09:00
SWC Bot
45fba897c6
chore: Publish crates
2023-03-13 01:59:04 +00:00
magic-akari
ae348e32e1
fix(es/compat): Insert the variable declaration nearest to the available statements ( #7067 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/7064 .
2023-03-13 01:57:14 +00:00
SWC Bot
136c498c80
chore: Publish crates
2023-03-12 04:52:09 +00:00
Donny/강동윤
085c6f35f1
fix(es/ast): Fix memory layout ( #7062 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/7061 .
2023-03-12 04:50:28 +00:00
SWC Bot
4015714633
chore: Publish crates
2023-03-12 03:57:57 +00:00
magic-akari
bb6dde7943
fix(es/compat): Handle useDefineForClassFields: false
( #7055 )
...
**BREAKING CHANGE:**
IMPORTANT NOTE: Users of decorators are recommended to configure `"useDefineForClassFields": false` to ensure that your code is properly transpiled.
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6985 .
2023-03-12 12:56:10 +09:00
SWC Bot
caaf29db66
chore: Publish crates
2023-03-12 00:48:40 +00:00
SWC Bot
2486e6b6bf
chore: Publish crates
2023-03-11 12:14:51 +00:00
Donny/강동윤
9beefaa1d5
perf(es/lexer): Use jump table for read_token
( #7058 )
2023-03-11 12:13:00 +00:00
SWC Bot
fa627e178a
chore: Publish crates
2023-03-11 10:43:53 +00:00
Donny/강동윤
fbb3016870
fix(es): Support stable rustc again ( #7057 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/7039 .
2023-03-11 10:42:04 +00:00
SWC Bot
0b0e61beb6
chore: Publish crates
2023-03-11 03:44:48 +00:00
Donny/강동윤
d1d0607158
perf(es/lexer): Make lexer faster ( #7052 )
2023-03-11 03:43:06 +00:00
SWC Bot
d868434845
chore: Publish crates
2023-03-11 02:56:04 +00:00
Daiki Nishikawa
3730463874
fix(es/preset-env): Update data for core-js3 ( #7023 )
2023-03-11 02:54:09 +00:00
SWC Bot
fd26f467a1
chore: Publish crates
2023-03-11 00:32:35 +00:00
magic-akari
b78ce8b7c2
feat(es/compat): Simplify static blocks in classes ( #7056 )
2023-03-11 00:30:49 +00:00
SWC Bot
d4ebb5e6ef
chore: Publish crates
2023-03-10 06:28:00 +00:00
suxin2017
9acaf4deeb
fix(es/parser): Handle class members with accessor
as the name ( #7046 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/7042 .
2023-03-10 06:26:14 +00:00
Donny/강동윤
740a78ba88
chore: Publish crates
2023-03-10 14:12:09 +09:00
SWC Bot
f46933615c
chore: Publish crates
2023-03-10 04:55:46 +00:00
SWC Bot
02e9e49733
chore: Publish crates
2023-03-10 03:54:16 +00:00
Donny/강동윤
962b0fc8af
perf(es/lexer): Use string searcher for lexing line comments ( #7043 )
2023-03-10 03:52:14 +00:00
SWC Bot
e0d4220264
chore: Publish crates
2023-03-09 14:21:23 +00:00
magic-akari
0314869464
fix(es/transforms): Handle object shorthand in const_modules
( #7022 )
2023-03-09 14:18:46 +00:00
SWC Bot
03488a3fb6
chore: Publish crates
2023-03-09 13:36:17 +00:00
Donny/강동윤
a9fe1d2d22
perf(es/ast): Shrink size of Expr
( #7041 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/7019 .
2023-03-09 13:34:11 +00:00
Donny/강동윤
691a8c1a54
chore(ci): Fix bot
2023-03-09 18:33:49 +09:00
Donny/강동윤
f378a14888
perf(es/parser): Use SmartString
as the buffer ( #7033 )
2023-03-09 08:07:40 +00:00
SWC Bot
fd2619ca24
chore: Publish crates
2023-03-09 04:13:27 +00:00
Anders Kaseorg
e698a34816
test(es/quote): Fix doctests ( #7038 )
2023-03-09 13:10:47 +09:00
SWC Bot
0f09789c43
chore: Publish crates
2023-03-08 06:52:40 +00:00
HeYunfei
8bfef35c1b
perf(es/utils): Introduce NodeIgnoringSpan
( #7030 )
2023-03-08 06:49:41 +00:00
SWC Bot
50ee7d1c83
chore: Publish crates
2023-03-08 04:57:40 +00:00
Donny/강동윤
30546a28f2
perf(es/parser): Use Cow for _
in numeric literals ( #7031 )
2023-03-08 04:54:28 +00:00
SWC Bot
56aac6783b
chore: Publish crates
2023-03-08 02:51:08 +00:00
Yoni Feng
9841f0b5d1
perf(atoms): Update string-cache
for per-bucket mutex ( #6980 )
2023-03-08 11:47:42 +09:00
SWC Bot
79549c0f20
chore: Publish crates
2023-03-07 14:50:22 +00:00
Donny/강동윤
81495f5f21
feat(common): Add an API to create a SourceFile
without allocation ( #7029 )
2023-03-07 14:47:21 +00:00
SWC Bot
e93c79b479
chore: Publish crates
2023-03-07 04:13:14 +00:00
magic-akari
5c7c8e0736
fix(es/transforms): Handle member object in missing else branch ( #7027 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/7025 .
2023-03-07 04:10:06 +00:00
SWC Bot
7f6b4f0089
chore: Publish crates
2023-03-07 02:08:30 +00:00
Austaras
1318afe2b4
fix(es/minifier): Bailout regex optimization on invalid flags ( #7020 )
2023-03-07 11:05:04 +09:00
Donny/강동윤
2a8f6aeb37
chore: Publish crates
2023-03-06 18:32:18 +09:00
Donny/강동윤
873e532f91
chore: Publish v1.3.38
( #7018 )
2023-03-06 09:30:21 +00:00
SWC Bot
0d3cff58c5
chore: Publish crates
2023-03-06 07:55:21 +00:00
Donny/강동윤
34f9ad3778
fix(es/typescript): Treat export default declarations as declarations ( #7017 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6953 .
2023-03-06 07:51:52 +00:00
SWC Bot
66247f0c49
chore: Publish crates
2023-03-06 07:15:47 +00:00
limerick
da5367b3fb
fix(es): Allow any kind of input source maps if it's enabled ( #7002 )
2023-03-06 07:12:54 +00:00
SWC Bot
f32be0e7c6
chore: Publish crates
2023-03-06 03:36:45 +00:00
magic-akari
3cb03d5299
feat(es/transforms): Support namespace imports from const_modules
( #7013 )
2023-03-06 03:33:52 +00:00
SWC Bot
b7cef34637
chore: Publish crates
2023-03-06 02:52:14 +00:00
Daiki Nishikawa
b46a7248c6
fix(es/preset-env): Move findLast
and findLastIndex
to finished proposals ( #7012 )
2023-03-06 02:49:08 +00:00
SWC Bot
1a368def06
chore: Publish crates
2023-03-05 07:30:48 +00:00
IWANABETHATGUY
6d6731f355
fix(es/parser): Fix parsing of an array spread in tsx properties ( #7011 )
2023-03-05 07:28:01 +00:00
SWC Bot
bb64643d94
chore: Publish crates
2023-03-05 06:43:31 +00:00
Donny/강동윤
a431a3a204
chore(ci): Fix CI ( #7014 )
2023-03-05 06:40:35 +00:00
SWC Bot
68b849be74
chore: Publish crates
2023-03-05 05:25:35 +00:00
Daiki Nishikawa
67d0a89ae6
feat(es/transforms): Add an option to drop unused imports ( #6962 )
2023-03-05 05:21:58 +00:00
SWC Bot
a82dd99c45
chore: Publish crates
2023-03-04 09:01:39 +00:00
magic-akari
bb2486c459
fix(es/minifier): Don't create invalid property names ( #7010 )
2023-03-04 17:58:49 +09:00
SWC Bot
28ee1e05fe
chore: Publish crates
2023-03-04 04:17:10 +00:00
Austaras
06cbb9002d
feat(es/minifier): Optimize calls to Boolean
/Number
/String
/Symbol
( #7006 )
2023-03-04 04:14:14 +00:00
SWC Bot
6b48896c4c
chore: Publish crates
2023-03-04 03:35:01 +00:00
Austaras
cfeb088c37
fix(es/minifier): Don't skip expressions with side effects from seq inliner ( #7007 )
2023-03-04 12:32:15 +09:00
SWC Bot
0ade738e43
chore: Publish crates
2023-03-03 02:49:46 +00:00
Daiki Nishikawa
a6471f34c0
feat(es/parser): Add an option to disallow ambiguous jsx ( #6913 )
2023-03-03 02:47:09 +00:00
SWC Bot
c2f0629f57
chore: Publish crates
2023-03-03 02:08:25 +00:00
SWC Bot
a504e2a11d
chore: Publish crates
2023-02-28 08:23:25 +00:00
Donny/강동윤
367ac825f6
refactor(es/parser): Make lexer not generic over Input
( #6993 )
...
**Description:**
Currently, it uses `StringInput` as the input type, but I'll refactor it to use `String` or `Vec<u8>` directly to optimize it further.
**Related issue:**
- https://github.com/swc-project/swc/discussions/6991
2023-02-28 08:20:29 +00:00
SWC Bot
bbb3615af7
chore: Publish crates
2023-02-28 06:42:16 +00:00
Donny/강동윤
37533a23fd
feat(es/parser): Support auto accessors ( #6981 )
2023-02-28 06:39:25 +00:00
SWC Bot
94138c801c
chore: Publish crates
2023-02-28 06:04:29 +00:00
magic-akari
beb38d34a2
feat(es/typescript): Support export type * from "mod"
( #6867 )
2023-02-28 06:01:37 +00:00
Donny/강동윤
dc925f9863
chore: Publish crates
2023-02-28 11:14:03 +09:00
SWC Bot
460a5cb897
chore: Publish crates
2023-02-27 02:40:15 +00:00
SWC Bot
2525a844da
chore: Publish crates
2023-02-23 08:49:08 +00:00
Gengkun
cc1d9bd567
fix(css/utils): Fix minification of class names with whitespace ( #6983 )
2023-02-23 08:46:24 +00:00
SWC Bot
c46c4f518f
chore: Publish crates
2023-02-23 07:58:41 +00:00
Donny/강동윤
b887b30092
test(es/tsc): Update tsc test suite ( #6982 )
...
**Description:**
This is required for https://github.com/swc-project/swc/pull/6981 and https://github.com/swc-project/swc/pull/6950
2023-02-23 07:55:58 +00:00
SWC Bot
447c1dad93
chore: Publish crates
2023-02-23 01:39:46 +00:00
magic-akari
703b340d39
fix(es/decorator): Preserve evaluation order ( #6972 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6951 .
2023-02-23 01:37:06 +00:00
SWC Bot
9e05f4c2d2
chore: Publish crates
2023-02-22 14:20:23 +00:00
IWANABETHATGUY
f1e7a2a9cc
chore(es/parser): Reduce pre-allocation to reduce memory usage ( #6979 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6966 .
2023-02-22 14:17:45 +00:00
SWC Bot
6496796c59
chore: Publish crates
2023-02-22 06:52:59 +00:00
Donny/강동윤
f12bfd1e55
chore: Publish crates
2023-02-21 16:10:52 +09:00
SWC Bot
e42b60b65c
chore: Publish crates
2023-02-21 06:25:11 +00:00
magic-akari
a27ffd2242
feat(es/minifier): Drop unused import bindings ( #6967 )
2023-02-21 06:22:25 +00:00
SWC Bot
2eb4c1cabd
chore: Publish crates
2023-02-21 05:38:59 +00:00
Hikaru Terazono (3c1u)
4771aa206a
fix(css/modules): Fix CSS animation
on CSS Modules ( #6969 )
2023-02-21 14:36:22 +09:00
SWC Bot
786f8180ad
chore: Publish crates
2023-02-20 05:31:02 +00:00
magic-akari
1dfadb8790
fix(es/minifier): Fix optimization of expressions in numeric context ( #6965 )
2023-02-20 05:28:28 +00:00
SWC Bot
89bbadbda6
chore: Publish crates
2023-02-19 14:53:16 +00:00
Donny/강동윤
e946c43f4e
fix(es/resolver): Use type context for export =
if it's unresolved ( #6963 )
...
**Related issue:**
- https://github.com/dudykr/stc/issues/717 .
2023-02-19 23:50:19 +09:00
SWC Bot
b9398ce2d9
chore: Publish crates
2023-02-19 14:20:55 +00:00
magic-akari
9382bda786
fix(es/minifier): Fix toFixed
, toPrecision
, toExponential
and toString
of Number ( #6960 )
2023-02-19 23:18:14 +09:00
SWC Bot
6f18f23326
chore: Publish crates
2023-02-18 11:50:22 +00:00
SWC Bot
63c5c7bbb0
chore: Publish crates
2023-02-16 05:05:34 +00:00
Laurent Gaucheron
542bb62ef7
fix(bundler): Don't panic while finding exports ( #6947 )
2023-02-16 14:00:49 +09:00
SWC Bot
6d7bf02e96
chore: Publish crates
2023-02-15 04:34:08 +00:00
Donny/강동윤
14454c9dbd
fix(es/react): Don't panic on key
without a value ( #6945 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6939 .
2023-02-15 04:31:02 +00:00
SWC Bot
4c6775646b
chore: Publish crates
2023-02-14 04:50:23 +00:00
SWC Bot
8c5a53d0d5
chore: Publish crates
2023-02-14 03:16:15 +00:00
LongYinan
0771418dd0
chore(swc_nodejs_common): remove swc_node_base from swc_nodejs_common ( #6940 )
...
- Ref: https://github.com/vercel/turbo/pull/3772
2023-02-14 03:13:36 +00:00
SWC Bot
f1f5a19e61
chore: Publish crates
2023-02-12 21:38:45 +00:00
Donny/강동윤
a9b25aaf4a
fix(es/react): Fix handling of whitespaces ( #6935 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6931 .
2023-02-12 21:35:55 +00:00
SWC Bot
5a598140c1
chore: Publish crates
2023-02-11 16:29:50 +00:00
Donny/강동윤
1ec161a0f1
fix(es/module): Fix jsc.paths
on Windows ( #6930 )
...
**Related issue:**
- Reverts https://github.com/swc-project/swc/pull/6716 .
- Closes https://github.com/swc-project/swc/issues/6782 .
2023-02-11 16:27:17 +00:00
SWC Bot
e332dffb58
chore: Publish crates
2023-02-10 18:32:51 +00:00
Donny/강동윤
0559f2c2b4
chore: Publish crates
2023-02-10 14:02:48 +09:00
SWC Bot
e600586925
chore: Publish crates
2023-02-10 03:56:01 +00:00
Donny/강동윤
ebc65c7dcb
fix(es/typescript): Fix handling of non-uppercase JSX elements ( #6928 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6923 .
2023-02-10 12:53:11 +09:00
SWC Bot
b9212cfee0
chore: Publish crates
2023-02-10 02:51:53 +00:00
SWC Bot
cade201a1f
chore: Publish crates
2023-02-10 02:30:18 +00:00
OJ Kwon
75376cd65c
chore: Bump swc_css_* ( #6924 )
2023-02-10 11:27:20 +09:00
SWC Bot
29fee38224
chore: Publish crates
2023-02-09 05:11:07 +00:00
Donny/강동윤
85a8defc37
fix(es/preset-env): Fix default target ( #6921 )
...
**Description:**
Previously the default value of `targets` was `""`, which is not deterministic.
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6888 .
2023-02-09 05:08:41 +00:00
SWC Bot
fe095e9dc1
chore: Publish crates
2023-02-09 03:10:10 +00:00
Donny/강동윤
725d3fb645
fix(es/minifier): Don't skip shorthand properties from sequential inliner ( #6918 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6914 .
2023-02-09 03:07:31 +00:00
Donny/강동윤
932d5a5302
chore: Publish crates
2023-02-08 16:51:05 +09:00
SWC Bot
b72ee503e4
chore: Publish crates
2023-02-08 07:48:41 +00:00
SWC Bot
63216ccf3f
chore: Publish crates
2023-02-08 06:47:21 +00:00
Donny/강동윤
d18027cf9b
test(es/module): Add a test for jsc.paths
on windows ( #6915 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/5165 .
2023-02-08 06:44:22 +00:00
SWC Bot
f7f18eded3
chore: Publish crates
2023-02-08 05:48:53 +00:00
SWC Bot
a566f9c999
chore: Publish crates
2023-02-08 05:17:01 +00:00
Donny/강동윤
4c5d5a6fca
fix(es/parser): Don't use stacker
for armv7 ( #6916 )
2023-02-08 05:14:41 +00:00
SWC Bot
4be6c33687
chore: Publish crates
2023-02-08 04:37:20 +00:00
Ah
f85ea9cb57
fix(css/modules): Fix interop of &
and :global
( #6900 )
2023-02-08 04:34:38 +00:00
Donny/강동윤
c293c14aaa
chore: Publish crates
2023-02-08 12:04:02 +09:00
SWC Bot
6112471d25
chore: Publish crates
2023-02-08 02:13:29 +00:00
Donny/강동윤
951dafbc1a
fix(es/minifier): Don't break ternary with assignment in test ( #6906 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6903 .
2023-02-08 02:10:44 +00:00
SWC Bot
7f7e21b687
chore: Publish crates
2023-02-07 16:12:00 +00:00
Alex Vasilev
85fffdad02
fix(es/module): Fix SystemJS imports ( #6879 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/5922 .
2023-02-07 16:07:46 +00:00
SWC Bot
74070935a9
chore: Publish crates
2023-02-07 15:20:28 +00:00
Daiki Nishikawa
76bc8a2974
feat(bindings/cli): Support for *.mts/*.cts files ( #6909 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/4679 .
2023-02-07 15:18:10 +00:00
SWC Bot
e65699c755
chore: Publish crates
2023-02-07 14:35:38 +00:00
Donny/강동윤
f36d945a33
fix(es/parser): Fix stack overflow due to deeply nested if ( #6910 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6813 .
2023-02-07 14:33:13 +00:00
SWC Bot
bd0072511b
chore: Publish crates
2023-02-07 08:09:02 +00:00
Donny/강동윤
ee3a1071a5
fix(es/typescript): Ignore jsx element names ( #6911 )
...
**Related issue:**
- https://github.com/vercel/next.js/issues/45561 .
2023-02-07 08:06:37 +00:00
SWC Bot
58b74ffbe2
chore: Publish crates
2023-02-07 06:24:58 +00:00
SWC Bot
113b85ee40
chore: Publish crates
2023-02-07 05:17:06 +00:00
Donny/강동윤
432dca647b
fix(es/minifier): Respect span hygiene from expr simplifier ( #6899 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6896 .
2023-02-07 05:14:19 +00:00
SWC Bot
af175fde8b
chore: Publish crates
2023-02-07 03:46:20 +00:00
SWC Bot
33093877c1
chore: Publish crates
2023-02-05 21:38:41 +00:00
Jonathan Rudenberg
d993c4def6
feat(bindings/cli): Add --config
( #6835 )
2023-02-05 21:35:48 +00:00
SWC Bot
f2333e4ccf
chore: Publish crates
2023-02-05 19:50:46 +00:00
SWC Bot
c223113338
chore: Publish crates
2023-02-01 10:34:44 +00:00
SWC Bot
18af9c3a27
chore: Publish crates
2023-02-01 06:51:38 +00:00
Donny/강동윤
861d87cae6
fix(es/resolver): Resolve parameters correctly ( #6890 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/5622 .
2023-02-01 15:49:08 +09:00
Donny/강동윤
ab02c0a07e
chore: Publish crates
2023-02-01 09:37:56 +09:00
SWC Bot
61397267bb
chore: Publish crates
2023-01-31 15:04:52 +00:00
Donny/강동윤
e79d46697c
test(es/compat): Add a test for a fixed issue ( #6887 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6886 .
2023-01-31 15:01:57 +00:00
SWC Bot
5160378f53
chore: Publish crates
2023-01-31 06:27:05 +00:00
Donny/강동윤
57781e90d3
fix(es/compat): Make optional chaining pass less permissive ( #6885 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6878 .
2023-01-31 06:24:23 +00:00
SWC Bot
f89d3d688c
chore: Publish crates
2023-01-31 05:47:59 +00:00
Donny/강동윤
d6a24a28e8
build(cargo): Drop dependencies on retain_mut
( #6884 )
2023-01-31 05:45:37 +00:00
SWC Bot
cdfaa8e292
chore: Publish crates
2023-01-31 03:24:17 +00:00
Donny/강동윤
9301703311
fix(es): Remove useless message ( #6882 )
2023-01-31 03:21:32 +00:00
Donny/강동윤
1bf2b2ddbf
chore: Publish crates
2023-01-30 22:35:40 +09:00
SWC Bot
3e8d80a324
chore: Publish crates
2023-01-30 11:17:16 +00:00
Donny/강동윤
d8088646df
fix(es/compat): Fix optional chaining pass ( #6875 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6762 .
2023-01-30 11:14:53 +00:00
SWC Bot
edc432713e
chore: Publish crates
2023-01-29 15:33:29 +00:00
Daiki Nishikawa
6b7249dcde
feat(es/loader): Support node:
prefix from NodeModulesResolver
( #6868 )
2023-01-29 15:31:13 +00:00
SWC Bot
0bb4dc2c3d
chore: Publish crates
2023-01-29 14:56:26 +00:00
HeYunfei
508267dccf
fix(visit): Fix detection of Option<Vec<T>>
( #6872 )
2023-01-29 14:54:08 +00:00
Donny/강동윤
b8fcf3bc62
chore: Publish crates
2023-01-29 22:44:56 +09:00
SWC Bot
2836fb207b
chore: Publish crates
2023-01-29 13:30:41 +00:00
Donny/강동윤
cb3901cb5e
chore: Publish crates
2023-01-29 03:35:48 +09:00
SWC Bot
3babace12d
chore: Publish crates
2023-01-28 18:34:39 +00:00
SWC Bot
1b56b40fda
chore: Publish crates
2023-01-28 17:21:30 +00:00
Austaras
c0e72ef64a
fix(es/minifier): Track reassign in parent scope ( #6865 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6864 .
2023-01-28 17:19:19 +00:00
SWC Bot
33dab56853
chore: Publish crates
2023-01-27 13:00:49 +00:00
Alex Vasilev
39c75fdcce
fix(es/module): Fix handling of this
for systemjs
( #6857 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6784 .
2023-01-27 12:58:22 +00:00
SWC Bot
5a5a7d70e4
chore: Publish crates
2023-01-27 06:59:44 +00:00
Donny/강동윤
60d9403073
fix(es/parser): Fix parsing of generics ( #6859 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6851 .
2023-01-27 06:57:19 +00:00
SWC Bot
586783a7ac
chore: Publish crates
2023-01-27 05:38:19 +00:00
Donny/강동윤
d1687d8e01
feat(es/minifier): Improve compatibility of arrows
with terser
( #6862 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6123 .
2023-01-27 14:36:12 +09:00
SWC Bot
49d9237e64
chore: Publish crates
2023-01-27 04:47:07 +00:00
Donny/강동윤
45cdfed6c8
chore(ci): FIx CI ( #6861 )
2023-01-27 04:44:58 +00:00
Donny/강동윤
420a67ac2b
chore: Publish crates
2023-01-26 17:22:40 +09:00
Donny/강동윤
7147cb3e2a
chore: Publish crates
2023-01-26 12:27:54 +09:00
SWC Bot
dbb3f362aa
chore: Publish crates
2023-01-26 03:09:22 +00:00
SWC Bot
8fc1b651b1
chore: Publish crates
2023-01-26 02:11:53 +00:00
Donny/강동윤
99d48e305e
fix(plugin): Make span_to_source
use dedicated function ( #6853 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6852 .
- Closes https://github.com/swc-project/swc/issues/6404 .
2023-01-26 02:09:36 +00:00
SWC Bot
28be71dfaf
chore: Publish crates
2023-01-26 01:19:53 +00:00
Austaras
55225cb994
refactor(es/minifier): Merge cond_init
with reassigned
( #6850 )
...
**Description:**
And optimize the following situation
```js
export function genElement(el, state) {
if ('slot' === el.tag) return el1 = el, genChildren(el1);
if (el.component) {
var el1
return 999;
}
}
```
which rarely happens in hand written JS, but is often generated by swc merge variable pass.
2023-01-26 10:17:33 +09:00
Donny/강동윤
1bf9b3777e
chore: Publish crates
2023-01-24 16:05:45 +09:00
SWC Bot
7ee39c73e1
chore: Publish crates
2023-01-24 07:05:16 +00:00
SWC Bot
30b8cc612e
chore: Publish crates
2023-01-24 06:18:52 +00:00
HeYunfei
58208ef8ae
perf(es/minifier): Make pure function check O(1)
( #6840 )
2023-01-24 06:16:23 +00:00
SWC Bot
05724e5122
chore: Publish crates
2023-01-23 10:16:00 +00:00
Austaras
2fcab36418
refactor(es/preset-env): Use a const fn instead of a macro ( #6844 )
2023-01-23 10:13:42 +00:00
SWC Bot
1d81137592
chore: Publish crates
2023-01-20 08:52:56 +00:00
Donny/강동윤
21e14787c5
fix(es/minifier): Don't inline into await
from sequential inliner ( #6839 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6837 .
2023-01-20 08:50:51 +00:00
SWC Bot
8863e31446
chore: Publish crates
2023-01-20 08:11:11 +00:00
Donny/강동윤
df702614e1
fix(es/codegen): Fix codegen of string literals with \x000
( #6838 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6836 .
2023-01-20 08:08:58 +00:00
SWC Bot
8194c65953
chore: Publish crates
2023-01-18 02:19:16 +00:00
Alex Dixon
7205543d5f
refactor(es/typescript): Remove unused code ( #6830 )
2023-01-18 02:16:43 +00:00
SWC Bot
09b3e72861
chore: Publish crates
2023-01-17 06:58:46 +00:00
Donny/강동윤
6ba726ba28
chore: Publish crates
2023-01-17 11:56:28 +09:00
SWC Bot
6f77544a10
chore: Publish crates
2023-01-17 02:52:10 +00:00
SWC Bot
c3607ba6eb
chore: Publish crates
2023-01-16 16:09:51 +00:00
RiESAEX
ad8d043f1d
feat(es/helper): Use require
to load polyfills and helpers in Script ( #6778 )
2023-01-16 16:07:40 +00:00
SWC Bot
b1f3eb74df
chore: Publish crates
2023-01-16 15:26:01 +00:00
westhide
e9fdac216c
fix(es/codegen): Skip space if jsx attrs is empty ( #6823 )
2023-01-16 15:23:28 +00:00
SWC Bot
4a75eb0157
chore: Publish crates
2023-01-16 06:59:39 +00:00
Donny/강동윤
ebce18b221
fix(es/renamer): Handle rest params correctly ( #6821 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6819 .
2023-01-16 06:57:16 +00:00
SWC Bot
179a5f8a92
chore: Publish crates
2023-01-16 04:53:53 +00:00
Donny/강동윤
82bd5c2041
feat(es/renamer): Rename synthesized identifiers even on eval
( #6818 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/5068 .
2023-01-16 04:51:47 +00:00
SWC Bot
a5707ae7c1
chore: Publish crates
2023-01-15 06:45:26 +00:00
Donny/강동윤
ff78b8f7e0
feat(es/ast): Add EsNext
to EsVersion
( #6816 )
2023-01-15 15:43:10 +09:00
SWC Bot
4ea0e20ded
chore: Publish crates
2023-01-15 00:20:53 +00:00
SWC Bot
767f50040b
chore: Publish crates
2023-01-14 09:00:21 +00:00
Alexander Akait
43e75194e5
feat(css/parser): Normalize at-rules ( #6705 )
2023-01-14 08:58:24 +00:00
SWC Bot
47cc6446d4
chore: Publish crates
2023-01-13 07:32:44 +00:00
Donny/강동윤
e7ea054c63
test(es): Enable execution tests for fixed issues ( #6805 )
2023-01-13 07:30:21 +00:00
SWC Bot
0bc0a0d274
chore: Publish crates
2023-01-13 06:57:24 +00:00
Donny/강동윤
8f683e3f77
feat(es/minifier): Remove noop spreads ( #6803 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6788 .
2023-01-13 06:55:04 +00:00
SWC Bot
b5adb7b842
chore: Publish crates
2023-01-13 05:42:09 +00:00
Donny/강동윤
a299fd0418
test(es/minifier): Add a test for an invalid issue ( #6802 )
...
**Related issue:**
- https://github.com/vercel/next.js/discussions/30237#discussioncomment-4674405
2023-01-13 05:39:22 +00:00
SWC Bot
b27793f579
chore: Publish crates
2023-01-13 05:02:46 +00:00
Donny/강동윤
631dd7872b
feat(es/renamer): Support safari10
from the name mangler ( #6801 )
2023-01-13 05:00:13 +00:00
SWC Bot
75bf8397ba
chore: Publish crates
2023-01-12 11:42:47 +00:00
Donny/강동윤
224eff91eb
feat(es/quote): Allow using Str
as a var ( #6797 )
2023-01-12 11:40:26 +00:00
SWC Bot
be0af3ff13
chore: Publish crates
2023-01-12 11:04:17 +00:00
Donny/강동윤
b29aa5b5a0
test(es/preset-env): Add a test for a wrong issue ( #6794 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6460 .
2023-01-12 11:01:25 +00:00
SWC Bot
ba910306ad
chore: Publish crates
2023-01-12 09:22:29 +00:00
Donny/강동윤
07676d5515
fix(es/compat): Ignore this
in nested scopes in classes
pass ( #6796 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6506 .
2023-01-12 09:19:40 +00:00
SWC Bot
2efcbdd2b4
chore: Publish crates
2023-01-12 07:31:36 +00:00
Donny/강동윤
c14540905f
fix(es/transform): Apply hygiene
and resolver
if minify is specified ( #6793 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6791 .
2023-01-12 07:29:28 +00:00
SWC Bot
06e7db9f06
chore: Publish crates
2023-01-12 06:56:43 +00:00
Donny/강동윤
7dc5ccb0fc
test(es/compat): Add a test to verify parameters passs ( #6792 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6790 .
2023-01-12 15:54:36 +09:00
Donny/강동윤
5496379454
chore: Publish crates
2023-01-11 18:36:16 +09:00
SWC Bot
d9b22b8bf7
chore: Publish crates
2023-01-11 08:43:06 +00:00
SWC Bot
1431c735a9
chore: Publish crates
2023-01-11 07:44:21 +00:00
Donny/강동윤
bbfa97a475
fix(es/decorator): Fix type detection for template literal types ( #6786 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6682 .
2023-01-11 07:42:09 +00:00
SWC Bot
eddf8fd1bb
chore: Publish crates
2023-01-11 07:06:58 +00:00
Donny/강동윤
06770cff04
fix(es/minifier): Make AST compressor respect toplevel
( #6775 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/4386 .
2023-01-11 07:04:20 +00:00
SWC Bot
267d256b5b
chore: Publish crates
2023-01-11 06:04:36 +00:00
Donny/강동윤
336b1d8b4d
fix(es/minifier): Don't inline conditionally initialized vars ( #6751 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6750 .
- Closes https://github.com/swc-project/swc/issues/6780 .
2023-01-11 06:01:56 +00:00
SWC Bot
c695249b2a
chore: Publish crates
2023-01-11 05:09:17 +00:00
Donny/강동윤
0ef84e1c00
test(es/module): Add a test for invalid issue ( #6785 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6779 .
2023-01-11 05:06:45 +00:00
SWC Bot
cd06479a43
chore: Publish crates
2023-01-11 03:00:59 +00:00
HeYunfei
ff8facef64
fix(es/parser): Allow parsing import.meta
as an expression ( #6783 )
2023-01-11 02:58:25 +00:00
SWC Bot
70c3126771
chore: Publish crates
2023-01-10 10:21:15 +00:00
Donny/강동윤
ae3cfa7d2d
fix(es): Remove useless context ( #6777 )
2023-01-10 10:19:01 +00:00
SWC Bot
6f1e08fa3c
chore: Publish crates
2023-01-10 06:45:17 +00:00
Donny/강동윤
ec7e913815
fix(es/minifier): Make name mangler respect toplevel
( #6774 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6418 .
2023-01-10 06:42:49 +00:00
SWC Bot
52dada97ff
chore: Publish crates
2023-01-10 06:03:34 +00:00
Donny/강동윤
3f0f664c48
fix(es/codegen): Skip lo
of a program if body is not empty ( #6773 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6767 .
2023-01-10 06:01:14 +00:00
SWC Bot
478b1fe458
chore: Publish crates
2023-01-10 05:10:48 +00:00
magic-akari
019cf37199
feat(es/typescript): Support const modifier on type parameters ( #6672 )
...
**Related issue:**
- https://github.com/microsoft/TypeScript/pull/51865 .
2023-01-10 05:08:29 +00:00
SWC Bot
b102504eb9
chore: Publish crates
2023-01-10 03:30:52 +00:00
Donny/강동윤
6d365de9e2
chore(ci): Fix CI action ( #6772 )
2023-01-10 03:28:07 +00:00
SWC Bot
ca64ab0906
chore: Publish crates
2023-01-09 11:00:40 +00:00
magic-akari
1d147602c0
fix(es/helpers): Make _classPrivateFieldLooseBase
return receiver ( #6770 )
2023-01-09 10:58:29 +00:00
SWC Bot
a145bb5776
chore: Publish crates
2023-01-09 06:27:08 +00:00
Donny/강동윤
6c126da1d4
test(es): Add a test for a fixed source map issue ( #6768 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6244 .
2023-01-09 06:25:03 +00:00
SWC Bot
a225efe363
chore: Publish crates
2023-01-08 04:59:27 +00:00
Justin Ridgewell
2b503c16d5
fix(es/codegen): Fix LineCol calculation of printed files ( #6763 )
...
**Description:**
There were several issues with the way we updated the current `LineCol` position during the printing of the generated file:
- We used `chars` and `char_indices` (UTF-32) instead of `encode_utf16` (UTF-16) chars.
- JS uses UCS-2 (basically UTF-16) for its strings, and source maps default to that implicitly.
- `\r` was incorrectly handled
- it didn't add a `line_start`; only `\n` did
- `\r\n` was incorrectly handled
- It was trying to let the `\n` path handle the `line_start`, but it called
`chars.next()` which ate the `\n` char.
I also took the opportunity to avoid the `Vec` allocations and reduced some code duplication.
See the
[before](https://evanw.github.io/source-map-visualization/#ODEzAC8qKgogKiBmb28KICogQHBhcmFtIGRhdGEgZm9vCiAqIEByZXR1cm5zIGZvbwogKi8gZXhwb3J0IGNvbnN0IGZpeHVwUmlza0NvbmZpZ0RhdGEgPSAoZGF0YSk9PnsKICAgIGlmICh4KSB7CiAgICAgICAgcmV0dXJuIDEyMzsKICAgIH0gZWxzZSB7CiAgICAgICAgcmV0dXJuIDQ1NjsKICAgIH0KfTsKCi8vIyBzb3VyY2VNYXBwaW5nVVJMPWRhdGE6YXBwbGljYXRpb24vanNvbjtiYXNlNjQsZXlKMlpYSnphVzl1SWpvekxDSnpiM1Z5WTJWeklqcGJJbWx1Y0hWMExuUnpJbDBzSW5OdmRYSmpaWE5EYjI1MFpXNTBJanBiSWk4cUtseHlYRzRnS2lCbWIyOWNjbHh1SUNvZ1FIQmhjbUZ0SUdSaGRHRWdabTl2WEhKY2JpQXFJRUJ5WlhSMWNtNXpJR1p2YjF4eVhHNGdLaTljY2x4dVpYaHdiM0owSUdOdmJuTjBJR1pwZUhWd1VtbHphME52Ym1acFowUmhkR0VnUFNBb1pHRjBZVG9nWVc1NUtUb2dkSGx3WlhNdVVtbHphME52Ym1acFoxUjVjR1VnUFQ0Z2UxeHlYRzRnSUdsbUlDaDRLU0I3WEhKY2JpQWdJQ0J5WlhSMWNtNGdNVEl6TzF4eVhHNGdJSDBnWld4elpTQjdYSEpjYmlBZ0lDQnlaWFIxY200Z05EVTJPMXh5WEc0Z0lIMWNjbHh1ZlRzaVhTd2libUZ0WlhNaU9sc2labWw0ZFhCU2FYTnJRMjl1Wm1sblJHRjBZU0lzSW1SaGRHRWlMQ0o0SWwwc0ltMWhjSEJwYm1keklqb2lRVUZCUVN4dFJFRkpReXhIUVVORUxFOUJRVThzVFVGQlRVRXNjMEpCUVhOQ0xFTkJRVU5ETEU5QlFXOURPMGxCUTNSRkxFbEJRVWxETEVkQlFVYzdVVUZEVEN4UFFVRlBPMGxCUTFRc1QwRkJUenRSUVVOTUxFOUJRVTg3U1VGRFZDeERRVUZETzBGQlEwZ3NSVUZCUlNKOTQ0NAB7InZlcnNpb24iOjMsInNvdXJjZXMiOlsiaW5wdXQudHMiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXHJcbiAqIGZvb1xyXG4gKiBAcGFyYW0gZGF0YSBmb29cclxuICogQHJldHVybnMgZm9vXHJcbiAqL1xyXG5leHBvcnQgY29uc3QgZml4dXBSaXNrQ29uZmlnRGF0YSA9IChkYXRhOiBhbnkpOiB0eXBlcy5SaXNrQ29uZmlnVHlwZSA9PiB7XHJcbiAgaWYgKHgpIHtcclxuICAgIHJldHVybiAxMjM7XHJcbiAgfSBlbHNlIHtcclxuICAgIHJldHVybiA0NTY7XHJcbiAgfVxyXG59OyJdLCJuYW1lcyI6WyJmaXh1cFJpc2tDb25maWdEYXRhIiwiZGF0YSIsIngiXSwibWFwcGluZ3MiOiJBQUFBLG1EQUlDLEdBQ0QsT0FBTyxNQUFNQSxzQkFBc0IsQ0FBQ0MsT0FBb0M7SUFDdEUsSUFBSUMsR0FBRztRQUNMLE9BQU87SUFDVCxPQUFPO1FBQ0wsT0FBTztJQUNULENBQUM7QUFDSCxFQUFFIn0= )
and
[after](https://evanw.github.io/source-map-visualization/#ODIyAC8qKgogKiBmb28KICogQHBhcmFtIGRhdGEgZm9vCiAqIEByZXR1cm5zIGZvbwogKi8gZXhwb3J0IHZhciBmaXh1cFJpc2tDb25maWdEYXRhID0gZnVuY3Rpb24oZGF0YSkgewogICAgaWYgKHgpIHsKICAgICAgICByZXR1cm4gMTIzOwogICAgfSBlbHNlIHsKICAgICAgICByZXR1cm4gNDU2OwogICAgfQp9OwoKLy8jIHNvdXJjZU1hcHBpbmdVUkw9ZGF0YTphcHBsaWNhdGlvbi9qc29uO2Jhc2U2NCxleUoyWlhKemFXOXVJam96TENKemIzVnlZMlZ6SWpwYklpNHZZWEJ3TG1weklsMHNJbk52ZFhKalpYTkRiMjUwWlc1MElqcGJJaThxS2x4eVhHNGdLaUJtYjI5Y2NseHVJQ29nUUhCaGNtRnRJR1JoZEdFZ1ptOXZYSEpjYmlBcUlFQnlaWFIxY201eklHWnZiMXh5WEc0Z0tpOWNjbHh1Wlhod2IzSjBJR052Ym5OMElHWnBlSFZ3VW1semEwTnZibVpwWjBSaGRHRWdQU0FvWkdGMFlUb2dZVzU1S1RvZ2RIbHdaWE11VW1semEwTnZibVpwWjFSNWNHVWdQVDRnZTF4eVhHNGdJR2xtSUNoNEtTQjdYSEpjYmlBZ0lDQnlaWFIxY200Z01USXpPMXh5WEc0Z0lIMGdaV3h6WlNCN1hISmNiaUFnSUNCeVpYUjFjbTRnTkRVMk8xeHlYRzRnSUgxY2NseHVmVHNpWFN3aWJtRnRaWE1pT2xzaVptbDRkWEJTYVhOclEyOXVabWxuUkdGMFlTSXNJbVJoZEdFaUxDSjRJbDBzSW0xaGNIQnBibWR6SWpvaVFVRkJRVHM3T3p0RFFVbERMRWRCUTBRc1QwRkJUeXhKUVVGTlFTeHpRa0ZCYzBJc1UwRkJRME1zVFVGQmIwTTdTVUZEZEVVc1NVRkJTVU1zUjBGQlJ6dFJRVU5NTEU5QlFVODdTVUZEVkN4UFFVRlBPMUZCUTB3c1QwRkJUenRKUVVOVUxFTkJRVU03UVVGRFNDeEZRVUZGSW4wPTQ0NgB7InZlcnNpb24iOjMsInNvdXJjZXMiOlsiLi9hcHAuanMiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXHJcbiAqIGZvb1xyXG4gKiBAcGFyYW0gZGF0YSBmb29cclxuICogQHJldHVybnMgZm9vXHJcbiAqL1xyXG5leHBvcnQgY29uc3QgZml4dXBSaXNrQ29uZmlnRGF0YSA9IChkYXRhOiBhbnkpOiB0eXBlcy5SaXNrQ29uZmlnVHlwZSA9PiB7XHJcbiAgaWYgKHgpIHtcclxuICAgIHJldHVybiAxMjM7XHJcbiAgfSBlbHNlIHtcclxuICAgIHJldHVybiA0NTY7XHJcbiAgfVxyXG59OyJdLCJuYW1lcyI6WyJmaXh1cFJpc2tDb25maWdEYXRhIiwiZGF0YSIsIngiXSwibWFwcGluZ3MiOiJBQUFBOzs7O0NBSUMsR0FDRCxPQUFPLElBQU1BLHNCQUFzQixTQUFDQyxNQUFvQztJQUN0RSxJQUFJQyxHQUFHO1FBQ0wsT0FBTztJQUNULE9BQU87UUFDTCxPQUFPO0lBQ1QsQ0FBQztBQUNILEVBQUUifQ== )
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6694 .
2023-01-08 13:57:26 +09:00
SWC Bot
fb6770f649
chore: Publish crates
2023-01-06 08:17:26 +00:00
HeYunfei
8a6a1cbcf1
feat(es/minifier): Handle boolean in Evaluator
( #6756 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/5953 .
2023-01-06 08:15:07 +00:00
Donny/강동윤
48902b60d3
chore: Publish crates
2023-01-06 16:41:16 +09:00
SWC Bot
1161360d54
chore: Publish crates
2023-01-06 03:49:20 +00:00
Donny/강동윤
26a0c13589
fix(common): Mark \r
as a line ending ( #6752 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6694 .
2023-01-06 03:47:16 +00:00
SWC Bot
ec8497b42c
chore: Publish crates
2023-01-06 03:16:51 +00:00
HeYunfei
a1ccc8afdf
feat(es/minifier): Make name mangler understand block scoping ( #6670 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/5090 .
- Closes https://github.com/swc-project/swc/issues/5766 .
2023-01-06 03:14:10 +00:00
Donny/강동윤
e9f99c4fe7
chore: Publish crates
2023-01-06 10:41:41 +09:00
SWC Bot
e5ea18b62b
chore: Publish crates
2023-01-05 23:46:00 +00:00
Donny/강동윤
f299101820
chore: Publish crates
2023-01-05 19:55:20 +09:00
SWC Bot
1f5c44ea70
chore: Publish crates
2023-01-05 10:09:49 +00:00
Donny/강동윤
b46815a684
fix(es): Fix wasm ( #6755 )
2023-01-05 10:07:45 +00:00
SWC Bot
3b034d597b
chore: Publish crates
2023-01-05 05:18:09 +00:00
SWC Bot
918a01bf5c
chore: Publish crates
2023-01-04 14:19:54 +00:00
HeYunfei
36b26d3496
fix(es/react): Force refresh if code contains @refresh reset
( #6749 )
2023-01-04 14:17:01 +00:00
SWC Bot
790c478a7a
chore: Publish crates
2023-01-04 07:29:33 +00:00
Donny/강동윤
65a0d3a310
fix(es/parser): Fix priority of >>>
( #6748 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6739 .
2023-01-04 07:27:08 +00:00
SWC Bot
d7081cc8a6
chore: Publish crates
2023-01-04 05:17:53 +00:00
Donny/강동윤
72fb606eb2
feat(es/jest): Support chaining of jest function calls ( #6747 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6540 .
2023-01-04 05:15:21 +00:00
SWC Bot
1638105865
chore: Publish crates
2023-01-04 04:33:32 +00:00
Donny/강동윤
88d40e8ab8
fix(es/minifier): Fix usage counter to fix infinite loop ( #6744 )
...
**Description:**
We skip non-computed property names while checking if we can inline an expression.
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6729 .
2023-01-04 04:31:12 +00:00
Donny/강동윤
62c0d7291a
chore: Publish crates
2023-01-04 12:13:55 +09:00
SWC Bot
9bdbe9dc9b
chore: Publish crates
2023-01-03 10:24:43 +00:00
RiESAEX
79afcb5d81
doc(es): Fix example ( #6743 )
2023-01-03 10:22:44 +00:00
SWC Bot
30471796c9
chore: Publish crates
2023-01-03 09:47:06 +00:00
Donny/강동윤
206c0dbebe
fix(es/compat): Fix syntax context of async-to-generator
( #6741 )
...
**Description:**
Previously, the `async-to-generator` produced invalid AST, in the aspect of span hygiene.
[Playground](https://play.swc.rs/?version=1.3.24&code=H4sIAAAAAAAAAz1MbQqAIBT77yn2UyG6gNQJuoSZRCAa7xkk4d1TicZgH7C5%2B4yUYGPgBE7ZuyWazREmSIVpxiMAcumi0C3ANZxyvQ6%2Fqa8CehxjaGNpOAcLaWjn%2F6KhKN1dGaoULSpfHPTdxn8AAAA%3D&config=H4sIAAAAAAAAA0WOSwrDMAxE76K1F22hXfgE3fQQxlWCi39ICsQY3z12cMlOjObNTIUfW9AVsiFGGheXKGYHDVIysiWXBRQId2kxnrEpwF2QovFv9BmJQQtt2D2GVpROIj9u92enfEqMk1MQXHRLGR02hUzIfL1MXP3f2XpFSN9tCPWccWa%2BoF0Zk3P8mcYxoR3Kj7IYzwAAAA%3D%3D ).
It generate two bindings for `args` so it's invalid.
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6730 .
2023-01-03 09:45:03 +00:00
SWC Bot
1602f66fe6
chore: Publish crates
2023-01-03 03:47:48 +00:00
RiESAEX
98da6444b6
perf(es/preset-env): Use VisitMut
instead of Fold
for polyfill ( #6734 )
2023-01-03 03:45:25 +00:00
SWC Bot
2e32faaa3c
chore: Publish crates
2023-01-03 03:14:24 +00:00
HeYunfei
b5d31cc2da
fix(es/utils): Fix detection of hoisting ( #6738 )
2023-01-03 03:12:01 +00:00
SWC Bot
0a1e30a4f8
chore: Publish crates
2022-12-30 06:34:07 +00:00
SWC Bot
0a652096ae
chore: Publish crates
2022-12-27 12:57:51 +00:00
Alexander Akait
1722428909
feat(css/prefixer): Support clamp
( #6695 )
2022-12-27 12:55:46 +00:00
SWC Bot
d72a31f990
chore: Publish crates
2022-12-27 12:24:41 +00:00
Alexander Akait
8af627d5c4
feat(css/parser): Normalize urange ( #6704 )
2022-12-27 12:22:46 +00:00
SWC Bot
35b72b59c8
chore: Publish crates
2022-12-27 07:43:30 +00:00
SWC Bot
bfb2ffee0c
chore: Publish crates
2022-12-27 01:02:01 +00:00
realtimetodie
b451fa9e88
fix(es): Remove import statement canonicalization ( #6716 )
2022-12-27 00:59:54 +00:00
Donny/강동윤
d506c96805
fix(preset-env): Update data ( #6719 )
2022-12-26 04:46:08 +00:00
SWC Bot
22973cbbf2
chore: Publish crates
2022-12-23 05:07:21 +00:00
SWC Bot
7fcc978748
chore: Publish crates
2022-12-22 01:39:10 +00:00
Alexander Akait
ebebd60875
refactor(css/codegen): Do not use raw
( #6674 )
2022-12-22 01:36:36 +00:00
SWC Bot
ef1d966b57
chore: Publish crates
2022-12-21 14:03:20 +00:00
Alexander Akait
27a8b7e50b
feat(css/prefixer): Support page break ( #6693 )
2022-12-21 14:00:59 +00:00
SWC Bot
e89f7856f7
chore: Publish crates
2022-12-21 09:37:10 +00:00
Donny/강동윤
58700f2bec
fix(es): Preserve license comments by default ( #6703 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6677 .
2022-12-21 09:34:40 +00:00
SWC Bot
af8a3a6b9d
chore: Publish crates
2022-12-21 07:40:45 +00:00
SWC Bot
61245739ea
chore: Publish crates
2022-12-21 03:03:05 +00:00
Alexander Akait
1c7f003779
feat(css/prefixer): Support overflow
( #6678 )
2022-12-21 03:00:53 +00:00
SWC Bot
3922ef5539
chore: Publish crates
2022-12-20 12:46:10 +00:00
Alexander Akait
2571070148
feat(css/parser): Normalize and improve function name ( #6667 )
2022-12-20 12:43:58 +00:00
SWC Bot
65c2ab32ab
chore: Publish crates
2022-12-20 12:12:05 +00:00
SWC Bot
e49d9437bb
chore: Publish crates
2022-12-20 11:34:40 +00:00
Alexander Akait
d8df1b53d1
feat(css/prefixer): Support place-*
properties ( #6685 )
2022-12-20 11:32:31 +00:00
SWC Bot
0ae2866334
chore: Publish crates
2022-12-20 10:53:36 +00:00
Alexander Akait
1840e748af
refactor(css/compat): Merge nesting into the compiler ( #6686 )
2022-12-20 10:51:27 +00:00
SWC Bot
4a56d025cb
chore: Publish crates
2022-12-20 10:13:29 +00:00
Donny/강동윤
5016ebed8f
fix(es/helpers): Fix loose mode ( #6691 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6581 .
2022-12-20 10:11:12 +00:00
SWC Bot
923e4ff840
chore: Publish crates
2022-12-20 09:37:22 +00:00
Donny/강동윤
707b1e3cd2
feat(es/minifier): Improve simplification of ?.
( #6681 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6492 .
2022-12-20 09:34:50 +00:00
SWC Bot
6109a4c188
chore: Publish crates
2022-12-20 08:25:03 +00:00