SWC Bot
f7baf240ba
chore: Bump crates
2024-02-07 07:25:27 +00:00
Donny/강동윤
c0beba7708
test(es): Update tsc
conformance test suite ( #8615 )
2024-02-07 07:23:54 +00:00
SWC Bot
8febd34a76
chore: Bump crates
2024-02-07 03:54:31 +00:00
Donny/강동윤
e5585e99f1
chore(preset-env): Update browserslist-rs
( #8614 )
2024-02-07 03:52:42 +00:00
SWC Bot
927b14a2e4
chore: Bump crates
2024-02-07 03:27:01 +00:00
Donny/강동윤
3122e944a8
feat(es/minifier): Implement correct hoist_props
( #8593 )
...
**Description:**
- The option `hoist_props` now does what it's supposed to do.
- Dropping of unused properties now does not drop properties too aggressively.
- The initializer of a dropped variable declaration is now properly visited.
- Indexing with string literals is not marked as a dynamic index anymore. This is required to handle codes like c3f67ceb1e/crates/swc_ecma_minifier/tests/terser/compress/hoist_props/name_collision_1/input.js (L1-L7)
.
2024-02-07 03:25:27 +00:00
SWC Bot
be55633273
chore: Publish 1.4.1-nightly-20240207.2
2024-02-07 02:54:16 +00:00
SWC Bot
6e23a1cb5b
chore: Publish 1.4.1-nightly-20240207.1
2024-02-07 00:40:16 +00:00
SWC Bot
319df6cb68
chore: Bump crates
2024-02-06 14:32:55 +00:00
yannkaiser
9e6dad9baf
fix(es/parser): Rescan <<
as <
when parsing type args ( #8607 )
...
**Description:**
The related issue is a product to the fact that the lexer sees a `<<`
token in `fun<<T>...` and therefore parses the type args as an arrow
function.
This PR adds the handling of the "split" of `<<` when beginning to parse
type args.
I am open for suggestions, I still find this a bit odd (in
`parse_ts_type_args()`):
```rs
if is!(p, "<<") {
p.input.cut_lshift();
} else {
expect!(p, '<');
}
```
**Related issue:**
- Closes #7187
- Closes #8209
- Closes #8581
2024-02-06 14:31:14 +00:00
SWC Bot
c3f67ceb1e
chore: Bump crates
2024-02-06 03:22:16 +00:00
David Sherret
7d724d8ea3
fix(es/parser): Fix parsing of dynamic source phase imports ( #8611 )
2024-02-06 03:20:30 +00:00
SWC Bot
7a3b5545cd
chore: Bump crates
2024-02-06 02:47:51 +00:00
David Sherret
5a773061db
fix(es/parser): Set class property to abstract
or override
even in error states ( #8610 )
...
**Description:**
Ensures that a class property with `abstract` or `override` is marked as such in the AST, even in error states.
2024-02-06 02:46:21 +00:00
SWC Bot
3ee12cf56d
chore: Bump crates
2024-02-06 02:12:03 +00:00
David Sherret
d87fef0fea
chore(config): Remove an empty file in swc_config
( #8609 )
2024-02-06 02:10:31 +00:00
강동윤 (Donny)
905525d6ca
chore: Update issue config
2024-02-05 21:25:42 +09:00
SWC Bot
7517c4f98f
chore: Bump crates
2024-02-05 11:26:46 +00:00
Donny/강동윤
16e9d4ca31
fix(es/quote): Fix code generation of AssignTarget
( #8604 )
2024-02-05 20:25:09 +09:00
SWC Bot
ae6debdcb3
chore: Bump crates
2024-02-05 11:07:48 +00:00
Donny/강동윤
ef916614f1
fix(es/quote): Support AssignTarget
, really ( #8603 )
2024-02-05 20:05:51 +09:00
SWC Bot
4f139d4f27
chore: Bump crates
2024-02-05 10:51:34 +00:00
Donny/강동윤
6a48be4b6b
fix(es/quote): Allow variables typed AssignTarget
( #8602 )
...
**Description:**
This is required to fix https://github.com/vercel/turbo/pull/7272
**Related issue:**
- https://github.com/vercel/turbo/pull/7272
2024-02-05 19:50:03 +09:00
SWC Bot
5fe45dbc44
chore: Bump crates
2024-02-05 10:34:09 +00:00
Donny/강동윤
95fe3dbe93
test: Update @swc/plguin-jest
used for plugin e2e testing ( #8601 )
2024-02-05 19:32:43 +09:00
SWC Bot
94f7b3d378
chore: Bump crates
2024-02-05 08:53:54 +00:00
Donny/강동윤
6c50ff1bec
refactor(bindings): Remove bindings for experimental packages ( #8600 )
...
**Description:**
These packages do not have the same versioning strategy as the main package.
2024-02-05 17:52:22 +09:00
강동윤 (Donny)
096ae4abdd
chore: Publish crates
2024-02-05 16:08:25 +09:00
강동윤 (Donny)
d03f15cfc2
chore: Publish crates
2024-02-05 16:07:23 +09:00
Donny/강동윤
a3d333a25d
chore: Publish v1.4.0
with swc_core
v0.90.x
( #8599 )
2024-02-05 16:06:18 +09:00
SWC Bot
abf615d895
chore: Publish 1.3.108-nightly-20240205.1
2024-02-05 07:01:26 +00:00
SWC Bot
48524e2ae8
chore: Bump crates
2024-02-05 06:34:30 +00:00
Donny/강동윤
7f2a2c1e40
refactor(es/ast): Improve type definitions of patterns ( #8532 )
...
**Description:**
- Copy `AssignmentTarget` from `oxc`.
- Use `BindingIdentifier` in more places.
**Related issue:**
- Closes #8026
2024-02-05 15:32:52 +09:00
SWC Bot
47e7b89a1b
chore: Bump crates
2024-02-04 06:19:41 +00:00
magic-akari
d480ab9ae8
fix(es/resolver): Skip property in JSX member ( #8598 )
...
**Related issue:**
- Close #8528
2024-02-04 06:17:52 +00:00
SWC Bot
52b821ab6f
chore: Publish 1.3.108-nightly-20240204.1
2024-02-04 00:42:35 +00:00
SWC Bot
b34421b1c9
chore: Bump crates
2024-02-03 02:11:55 +00:00
magic-akari
2a70a6b1d4
fix(es/typescript): Handle exported JSX binding name in TypeScript namespace ( #8596 )
...
**Related issue:**
- Closes #8594
2024-02-03 02:10:21 +00:00
SWC Bot
190c4e29e1
chore: Bump crates
2024-02-02 12:37:31 +00:00
Donny/강동윤
fd997d3712
feat(es/minifier): Respect more options ( #8582 )
...
**Description:**
This PR makes the ES minifier respect more options.
Changes:
- `reduce_vars` now enables IIFE invoker.
- `reduce_vars` now enables seq inliner.
- `top_retain` is now respected by seq inliner.
- `arguments` is now ignored by seq inliner.
---------
Co-authored-by: austaras <austaras@outlook.com>
2024-02-02 12:35:58 +00:00
SWC Bot
507c469696
chore: Bump crates
2024-02-02 03:19:05 +00:00
Donny/강동윤
872a47b851
test(es/testing): Ensure that test_inline!
is working properly ( #8590 )
...
**Related issue:**
- Closes #8586
2024-02-02 03:17:43 +00:00
SWC Bot
8c1f10823c
chore: Bump crates
2024-02-02 01:47:14 +00:00
Donny/강동윤
a7c5255ad1
fix(es/minifier): Fix top-level check ( #8583 )
...
**Description:**
Our logic for checking top-level was wrong.
2024-02-02 01:45:41 +00:00
SWC Bot
ef21736584
chore: Bump crates
2024-02-02 01:19:28 +00:00
yannkaiser
8413a6c48e
fix(es/lexer): Fix typo in package
keyword ( #8589 )
...
**Description:**
There is a typo in the ES lexer for the keyword `package`.
**Related issue:**
- Closes #8588
2024-02-02 10:17:48 +09:00
SWC Bot
386c391081
chore: Bump crates
2024-02-02 00:43:47 +00:00
Donny/강동윤
18e0b53fbb
feat(es/minifier): Inline more IIFE arguments ( #8584 )
...
**Description:**
We can inline more.
2024-02-02 09:42:15 +09:00
SWC Bot
1fc8fe2aee
chore: Publish 1.3.108-nightly-20240201.1
2024-02-01 00:35:01 +00:00
SWC Bot
429c1bae44
chore: Bump crates
2024-01-31 08:50:09 +00:00