David Sherret
64c9b8f4f1
fix(es/codegen): Emit namespace
keyword of TsModuleDecl
if possible ( #8676 )
...
**Description:**
Emits the namespace keyword for TsModuleDecls when able.
Been meaning to open a PR for this one for a while, but the module
keyword may be deprecated in the future in TS in non-ambient modules, so
it's better to do this.
2024-03-02 10:48:30 +00:00
SWC Bot
5dc40d347b
chore: Bump crates
2024-03-02 10:24:52 +00:00
SWC Bot
1603569a75
chore: Bump crates
2024-02-26 02:49:45 +00:00
xc2
e1791340cd
fix(es/codegen): Fix replacement when inline_script
is on ( #8659 )
...
**Description:**
The replacements for `inline_script` might be with mistake
40682c8d1f/crates/swc_ecma_codegen/src/lib.rs (L649)
which in terser is:
![image](https://github.com/swc-project/swc/assets/18117084/e843e125-c001-44d1-9572-15bec355a34e )
0ef05847fa/lib/output.js (L414)
**Related issue:**
https://github.com/web-infra-dev/rspack/issues/5757
2024-02-26 02:48:06 +00:00
SWC Bot
4154cfa8cb
chore: Bump crates
2024-02-23 00:15:59 +00:00
David Sherret
66bf8e907d
fix(es/codegen): Emit computed getter and setter signatures ( #8656 )
...
**Description:**
Emits computed getter/setter signatures.
2024-02-23 00:14:29 +00:00
SWC Bot
7c5113b6a9
chore: Bump crates
2024-02-22 02:56:23 +00:00
SWC Bot
359ae7a16a
chore: Bump crates
2024-02-21 10:22:20 +00:00
SWC Bot
5cab610db1
chore: Bump crates
2024-02-20 01:27:25 +00:00
SWC Bot
906cca43c1
chore: Bump crates
2024-02-08 01:51:17 +00:00
SWC Bot
f7baf240ba
chore: Bump crates
2024-02-07 07:25:27 +00:00
SWC Bot
7a3b5545cd
chore: Bump crates
2024-02-06 02:47:51 +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
SWC Bot
ef21736584
chore: Bump crates
2024-02-02 01:19:28 +00:00
SWC Bot
429c1bae44
chore: Bump crates
2024-01-31 08:50:09 +00:00
Donny/강동윤
8c322250b7
fix(es/codegen): Fix codegen of async methods with decorators ( #8575 )
...
**Related issue:**
- Closes #4311
2024-01-31 08:48:30 +00:00
SWC Bot
a5c56a9e14
chore: Bump crates
2024-01-28 12:35:38 +00:00
Donny/강동윤
07634a05ba
fix(es/codegen): Do not produce octal literals ( #8565 )
2024-01-28 12:34:03 +00:00
SWC Bot
2d15177ca9
chore: Bump crates
2024-01-23 08:38:01 +00:00
Donny/강동윤
4630426d6a
chore(common): Update sourcemap
( #8544 )
...
**Related issue:**
- Closes #7822
2024-01-23 08:36:04 +00:00
SWC Bot
6210bf19de
chore: Bump crates
2024-01-21 03:08:11 +00:00
magic-akari
72048ae1ce
feat(es/ast): Support import phase ( #8279 )
...
**Description:**
- https://github.com/tc39/proposal-source-phase-imports
2024-01-21 12:05:46 +09:00
Donny/강동윤
bc38ac906c
fix(es/ast): Fix definition of SetterProp
( #8314 )
...
**Related issue:**
- Closes #8157
- Closes #8377
2024-01-21 12:05:46 +09:00
David Sherret
572bcaefc1
fix(es/ast): Add definite
and is_override
to AutoAccessor
( #8436 )
...
**Description:**
Adds a `definite` and `is_override` property to `AutoAccessor` as they were missing.
It also fixes codegen for `AutoAccessor` when emitting TypeScript (which is the main reason I need this PR).
**BREAKING CHANGE:**
Adds a `definite` and `is_override` property.
**Related issue:**
- Closes #8344
2024-01-21 12:05:46 +09:00
SWC Bot
1ca0d65c29
chore: Bump crates
2024-01-21 02:34:11 +00:00
Donny/강동윤
974c6a0036
test(es/codegen): Add a JS test for ascii-only mode ( #8519 )
...
**Description:**
The issue was fixed by #8493 , but it was not included in the latest release because of the wrong bump comment.
**Related issue:**
- Closes #8491
2024-01-19 04:14:11 +00:00
SWC Bot
e63a5c7e95
chore: Bump crates
2024-01-19 02:14:55 +00:00
Donny/강동윤
9f1ce3acd6
fix(es/codegen): Fix codegen of \\0
( #8433 )
...
**Related issue:**
- Closes #8431
2024-01-19 02:11:05 +00:00
Donny/강동윤
8d9bf4cfaa
fix(es/codegen): Fix codegen of a property key in ascii-only mode ( #8493 )
...
**Related issue:**
- Closes #8491
2024-01-14 08:11:08 +00:00
SWC Bot
d9a79a0a39
chore: Publish crates
2024-01-04 12:28:02 +00:00
SWC Bot
4e860c988d
chore: Publish crates
2024-01-04 04:49:50 +00:00
David Sherret
e0bdc0f7c2
fix(es/codegen): Emit ?
for an optional computed property ( #8481 )
...
**Description:**
Emits optional `?` for a computed property.
2024-01-04 04:48:07 +00:00
SWC Bot
8997ed1547
chore: Publish crates
2024-01-04 04:25:54 +00:00
SWC Bot
f2ede40e38
chore: Publish crates
2024-01-03 06:58:23 +00:00
David Sherret
d98a28290b
fix(es/codegen): Emit implements clause with commas ( #8477 )
2024-01-03 06:56:46 +00:00
SWC Bot
cddb0165bb
chore: Publish crates
2024-01-03 05:41:28 +00:00
David Sherret
2076ef8f35
fix(es/codegen): Emit declare keyword for class properties ( #8478 )
2024-01-03 14:40:01 +09:00
SWC Bot
a4e91af934
chore: Publish crates
2024-01-03 04:45:13 +00:00
David Sherret
a12eaae0e5
fix(es/codegen): Emit abstract keyword ( #8479 )
2024-01-03 04:43:45 +00:00
SWC Bot
4229e7b99b
chore: Publish crates
2023-12-29 08:49:51 +00:00
SWC Bot
d6dd1f9240
chore: Publish crates
2023-12-24 01:32:20 +00:00
David Sherret
0dd96f85e2
fix(es/codegen): Emit override
keyword ( #8449 )
...
**Description:**
Emits the `override` keyword.
2023-12-24 10:30:46 +09:00
SWC Bot
611d7175d4
chore: Publish crates
2023-12-22 03:27:18 +00:00
David Sherret
65dec905c0
fix(es/codegen): Fix codegen of type-only export declarations ( #8447 )
...
**Description:**
This fixes the emit for `export type { } from "..."` and `export { type A } from "..."`.
2023-12-22 12:25:52 +09:00
SWC Bot
45f62f7886
chore: Publish crates
2023-12-17 06:48:43 +00:00
David Sherret
7566ddf0b7
fix(es/codegen): Fix codegen of ts specific syntax in class props ( #8426 )
...
**Description:**
This fixes the codegen of private properties with `is_optional` or `definite` and class properties with `definite`.
2023-12-17 06:47:20 +00:00
SWC Bot
f736c3c2df
chore: Publish crates
2023-12-12 05:55:01 +00:00
Austaras
dce369336d
fix(es/codegen): Emit extra paren emitting AssignExpr
( #8413 )
...
**Related issue:**
- Closes #8412
2023-12-12 05:53:32 +00:00