Donny/강동윤
51e0639ede
fix(es/es2015): Fix typeof
comparions with "object"
( #8976 )
...
**Related issue:**
- Closes #8971
2024-05-26 21:41:23 +09:00
SWC Bot
7c62a79d9b
chore: Bump crates
2024-05-24 05:12:45 +00:00
Donny/강동윤
a753c8d191
fix(es/minifier): Mark usage in TaggedTpl
as ref ( #8975 )
...
**Related issue:**
- Closes #8974
2024-05-24 05:11:00 +00:00
Donny/강동윤
2a43df4984
fix(es/minifier): Fix comparison of -0.0
and 0
( #8973 )
...
**Related issue:**
- Closes #8972
2024-05-24 09:16:42 +09:00
SWC Bot
eaffeb8dab
chore: Bump crates
2024-05-23 05:20:02 +00:00
Donny/강동윤
95472e4037
test(es/decorators): Add tests written by evanw ( #8967 )
...
**Description:**
Add https://github.com/evanw/decorator-tests as partially ignored tests so we can work on decorator fixes gradually.
2024-05-23 14:18:32 +09:00
Donny/강동윤
a4567998b0
fix(es/codegen): Accept &impl Node
instead of impl Node
( #8969 )
2024-05-23 12:13:13 +09:00
SWC Bot
85e4eaa507
chore: Bump crates
2024-05-23 02:25:14 +00:00
Donny/강동윤
e80fd41ea8
feat(es/codegen): Add to_code
( #8968 )
...
**Description:**
This is a utility function for printing an AST node as a string
2024-05-23 02:23:32 +00:00
SWC Bot
ea14fc8e59
chore: Bump crates
2024-05-22 02:29:02 +00:00
Donny/강동윤
545ec51b51
fix(es/minifier): Add type check to &
and |
( #8965 )
...
**Related issue:**
- Closes #8964
2024-05-22 11:27:00 +09:00
SWC Bot
59e310d0fe
chore: Bump crates
2024-05-21 01:22:57 +00:00
Donny/강동윤
ced63a973e
feat(plugin/runner): Add description about wasi and file system ( #8963 )
...
**Description:**
- x-ref:
https://vercel.slack.com/archives/C01QNLABZJ8/p1715816821287309?thread_ts=1715793483.177469&cid=C01QNLABZJ8
2024-05-21 01:21:27 +00:00
SWC Bot
4fc3c66f8f
chore: Bump crates
2024-05-18 01:45:56 +00:00
Donny/강동윤
f960d52364
refactor(bindings): Make @swc/core
a subpackage ( #8625 )
...
**Description:**
This is for consistency and future extensions.
2024-05-18 09:23:06 +09:00
Donny/강동윤
02729f24d8
fix(es/minifier): Abort property hoisting on eval
( #8957 )
...
**Description:**
- Repro: https://github.com/kdy1/repro-next-46887-2
**Related issue:**
- https://github.com/vercel/next.js/issues/46887#issuecomment-2113264586
2024-05-16 11:35:45 +09:00
SWC Bot
f681924023
chore: Bump crates
2024-05-16 02:11:50 +00:00
Donny/강동윤
255485e373
fix(es/minifier): Abort array property inliner if the array is used as a ref ( #8956 )
...
**Description:**
Repro:
- https://github.com/kdy1/repro-next-46887
**Related issue:**
- https://github.com/vercel/next.js/issues/46887
2024-05-16 11:09:41 +09:00
SWC Bot
53e1ae2e1b
chore: Bump crates
2024-05-14 00:56:51 +00:00
Donny/강동윤
ff60960afe
doc(es/typescript): Fix example ( #8952 )
...
**Related issue:**
- Closes #8950
2024-05-14 00:55:06 +00:00
SWC Bot
23b63bc1e5
chore: Bump crates
2024-05-13 09:15:58 +00:00
Donny/강동윤
606cb677c4
fix(es): Allow input source map file to be omitted ( #8951 )
...
**Description:**
Some libraries generate source maps but do not upload them to npm, which causes SWC to fail.
**Related issue:**
- https://github.com/swc-project/swc/issues/8789#issuecomment-2105055772
2024-05-13 09:14:21 +00:00
SWC Bot
6bd0d983e2
chore: Bump crates
2024-05-13 05:01:28 +00:00
Austaras
7053bb16ce
fix(es/compat): Avoid reserved name for private method ( #8949 )
...
**Description:**
Following development should follow babel/babel#16261 to avoid separate `WeakMap` for each individual private method
**Related issue:**
- Closes #8948 .
2024-05-13 04:59:48 +00:00
Donny/강동윤
3046d71daa
fix(es/minifier): Abort seq inliner on **
( #8947 )
...
**Related issue:**
- Closes #8942
2024-05-13 01:11:46 +00:00
SWC Bot
8baa0e579c
chore: Bump crates
2024-05-13 00:48:12 +00:00
Donny/강동윤
772c50fd76
fix(es/minifier): Fix evaluation of String.charCodeAt
( #8946 )
...
**Related issue:**
- Closes #8943
2024-05-13 00:46:29 +00:00
SWC Bot
5673fceaf6
chore: Bump crates
2024-05-10 02:25:42 +00:00
Donny/강동윤
6362ff4ba8
fix(es/ast): Pin version of unicodes ( #8941 )
...
**Description:**
https://github.com/swc-project/swc/issues/8940#issuecomment-2102423586
> I found part of the problem:
>
> U+30FB was added to `ID_Continue` from Unicode version 14 to 15, but v8 is using an older version of unicode ... which I can't find the exact version.
>
> I spent 2 hours searching for all the missing pieces, I give up.
>
> Let me back port unicode version 14.
**Related issue:**
- Closes #8940
2024-05-10 11:23:52 +09:00
Austaras
5a3456c254
fix(es/minifier): Don't invoke IIFE containing reserved words ( #8939 )
...
**Description:**
`inline` and `seq inline` should apply this change too.
**Related issue:**
- Closes #8622
2024-05-09 06:54:25 +00:00
SWC Bot
1f01cd42bd
chore: Bump crates
2024-05-09 01:51:35 +00:00
Donny/강동윤
257afc92c9
fix(es/minifier): Abort inliner on mutation via property ( #8938 )
...
**Related issue:**
- Closes #8937
2024-05-09 10:49:41 +09:00
SWC Bot
76393d9fd7
chore: Bump crates
2024-05-08 07:27:20 +00:00
Donny/강동윤
d4be383318
fix(es/minifier): Fix a bug about Tpl
=> Str
( #8934 )
...
**Description:**
I added the method to `swc_ecma_ast` to reuse it from plugins.
**Related issue:**
- Closes #8931
2024-05-08 07:25:32 +00:00
SWC Bot
2c27925f34
chore: Bump crates
2024-05-08 06:59:23 +00:00
Donny/강동윤
c536d2ad6f
fix(es/module): Resolve .jsx
imports fully ( #8936 )
...
**Related issue:**
- Closes #8935
2024-05-08 15:57:50 +09:00
Donny/강동윤
c9d72cdc6a
fix(es/minifier): Fix operand handling of **
( #8933 )
...
**Related issue:**
- Closes #8924
2024-05-08 01:37:57 +00:00
Donny/강동윤
2405dc6ba0
fix(css/modules): Fix :global
selectors without preceding whitespace ( #8926 )
...
**Related issue:**
- Closes #8461
2024-05-07 08:43:41 +00:00
Austaras
8932a1b527
refactor(es/minifier): Remove unnecessary check ( #8927 )
2024-05-07 06:19:24 +00:00
SWC Bot
8654a34385
chore: Bump crates
2024-05-07 05:54:22 +00:00
Donny/강동윤
7014c63625
fix(css/modules): Allow any order of composes ( #8930 )
...
**Related issue:**
- Closes #8240
2024-05-07 05:52:49 +00:00
SWC Bot
ad1cc5f972
chore: Bump crates
2024-05-07 05:28:42 +00:00
Donny/강동윤
4d4a7a9bcb
fix(es/minifier): Consider side effects of operands of binary expressions ( #8929 )
...
**Related issue:**
- Closes #8923
2024-05-07 05:27:08 +00:00
SWC Bot
9bf57906c5
chore: Bump crates
2024-05-07 04:58:37 +00:00
Donny/강동윤
6b60bdb697
fix(es/fixer): Wrap class expressions in callee ( #8928 )
...
**Related issue:**
- Closes #8920
2024-05-07 04:57:05 +00:00
SWC Bot
431b7306b8
chore: Bump crates
2024-05-07 03:17:29 +00:00
Donny/강동윤
aca6a77903
fix(es/minifier): Respect module: false
( #8925 )
...
**Description:**
Tests are modified because I enabled script detection for the fixture test suite.
**Related issue:**
- Closes #8909
2024-05-07 12:15:47 +09:00
Donny/강동윤
762b0d4477
fix(es/proposal): Fix scoping of explicit resource management pass ( #8903 )
...
**Related issue:**
- Closes #8895
2024-05-05 01:33:54 +00:00
SWC Bot
225d25a015
chore: Bump crates
2024-05-05 01:10:06 +00:00
SWC Bot
a9bab833ba
chore: Bump crates
2024-05-01 00:36:57 +00:00