강동윤 (Donny)
8ddb0dafa2
chore(ci): Fix publish action
2023-10-02 12:41:23 +09:00
강동윤 (Donny)
13161c45cd
chore: Publish crates
2023-10-01 20:52:47 +09:00
Donny/강동윤
020027d5d9
chore: Publish v1.3.91
with swc_core
v0.83.34
( #8040 )
2023-10-01 11:51:50 +00:00
SWC Bot
203b2297c3
chore: Publish crates
2023-09-30 11:42:29 +00:00
Austaras
01391e3c13
fix(es/minifier): Check if object shorthand is skippable for seq inliner ( #8036 )
...
**Related issue:**
- Closes #7984
2023-09-30 11:40:46 +00:00
강동윤 (Donny)
c0625361a1
chore: Fix yarn lockfile
2023-09-30 06:43:54 +09:00
SWC Bot
3fd6f64e60
chore: Publish crates
2023-09-29 21:35:08 +00:00
Austaras
06b6eb9999
fix(es/compat): Generate OptCall
for OptCall
for private fields ( #8031 )
...
**Related issue:**
- Closes #8003
2023-09-29 21:32:48 +00:00
강동윤 (Donny)
7f91274208
chore: Fix yarn lockfile
2023-09-30 05:57:06 +09:00
강동윤 (Donny)
dec68c3212
chore(ci): Remove wrong if
s
2023-09-30 05:54:53 +09:00
SWC Bot
8f445f49c9
chore: Publish crates
2023-09-29 20:54:50 +00:00
Donny/강동윤
186ecfadb5
chore(ci): Expose more crates to JS ( #8033 )
2023-09-29 20:52:40 +00:00
SWC Bot
5283e5bf82
chore: Publish crates
2023-09-29 20:36:29 +00:00
magic-akari
cf96171a53
fix(es/typescript): Preserve default value of an exported binding in a namespace ( #8029 )
...
**Related issue:**
- Closes : #8025
2023-09-29 20:34:24 +00:00
SWC Bot
d35de6444e
chore: Publish crates
2023-09-29 19:53:01 +00:00
Donny/강동윤
8214b9ed4e
chore(ci): Prepare @swc/minifier
( #8027 )
2023-09-29 19:51:00 +00:00
SWC Bot
537932b581
chore: Publish crates
2023-09-29 19:48:02 +00:00
Donny/강동윤
b6b5a4d3a6
doc(counter): Document the purpose of the package ( #8032 )
2023-09-29 19:46:15 +00:00
SWC Bot
90387bb340
chore: Publish crates
2023-09-29 14:50:45 +00:00
Donny/강동윤
a13f5cbe03
refactor(es): Extract parser/codegen code for swc::Compiler
( #8030 )
2023-09-29 14:48:31 +00:00
SWC Bot
920362685b
chore: Publish crates
2023-09-29 11:01:28 +00:00
Donny/강동윤
725f7f5bda
refactor(es/minifier): Move JS options to swc_ecma_minifier
( #8028 )
...
**Description:**
This is not a public API, though.
2023-09-29 10:59:43 +00:00
SWC Bot
2153c05c66
chore: Publish crates
2023-09-29 10:27:04 +00:00
magic-akari
990ca06aca
fix(es/module): Sort the exported ESM bindings ( #8024 )
...
**Related issue:**
- Closes : #8023
2023-09-29 10:25:22 +00:00
SWC Bot
83f77ddfce
chore: Publish crates
2023-09-29 08:49:57 +00:00
Donny/강동윤
64d8f4b59f
feat(bindings): Create a minifier-only package ( #7993 )
2023-09-29 08:47:59 +00:00
SWC Bot
632a63a46e
chore: Publish crates
2023-09-27 23:30:11 +00:00
jrandolf
38bc71006e
fix(es/compat): Use return statements for method and setter decorator ( #8017 )
...
**Description:**
This aligns with other implementations such as TypeScript's and correctly implements the currently proposed behavior.
**Related issue:**
- Closes #8015 .
2023-09-27 23:27:57 +00:00
SWC Bot
0871d4e0f0
chore: Publish crates
2023-09-27 14:36:52 +00:00
magic-akari
58172689ce
fix(es/typescript): Rename wrong unresolved_mark
( #8018 )
...
**Related issue:**
- Closes : #8016
2023-09-27 14:34:59 +00:00
강동윤 (Donny)
8231f874e7
chore: Publish crates
2023-09-27 10:13:08 +09:00
Donny/강동윤
724b83b05d
chore: Publish v1.3.90
with swc_core
v0.83.26
( #8013 )
2023-09-27 01:12:23 +00:00
SWC Bot
0e24dc9c74
chore: Publish crates
2023-09-27 00:57:21 +00:00
magic-akari
2f01aba978
fix(es/typescript): Handle qualified access in assign pat ( #8012 )
...
**Related issue:**
- Closes #8011
- https://github.com/swc-project/swc/discussions/5186
2023-09-27 00:55:22 +00:00
SWC Bot
7c227870c8
chore: Publish crates
2023-09-26 23:39:31 +00:00
magic-akari
9d08b8a614
fix(es/typescript): Handle DeclareCollect
correctly ( #8008 )
...
**Related issue:**
- Closes #8007
2023-09-26 23:37:28 +00:00
SWC Bot
78e12595a4
chore: Publish crates
2023-09-26 03:59:50 +00:00
Donny/강동윤
f07bb482e6
fix(es/codegen): Fix codegen of optional chaining expr with a comment ( #8005 )
...
**Related issue:**
- Closes #8004
2023-09-26 03:58:02 +00:00
SWC Bot
b74a9f4357
chore: Publish crates
2023-09-25 23:38:00 +00:00
Donny/강동윤
39c680d814
fix(es/codegen): Fix codegen of unicode surrogates ( #7985 )
...
**Description:**
x-ref: https://vercel.slack.com/archives/C02HY34AKME/p1695334071194139
Reproduction: https://github.com/kdy1/repro-test-mdx-korean
Regression of next.js: `v13.4.11`(swc_core@v0.79.13 ) => `v13.5.2`
(swc_core@v0.83.12 )
- `next@v13.4.19` works (swc_core@v0.79.59 )
- `next@v13.4.20-canary.3` works (swc_core@v0.79.70 )
- **`next@v13.4.20-canary.32` fails** (swc_core@v0.83.12 )
Commit range:
662f236aa5...e67bf05f9d
- `swc_core@v0.79.70`:
662f236aa5
- `swc_core@v0.83.12`:
e67bf05f9d
Diff: https://gist.github.com/kdy1/047e7e5537c34180d446cb3d5b95fce8
---
I did more investigation by monkey-patching the `next` package.
`.minify()` resolved without an exception.
It means that `.minify()` is producing an invalid ES code.
So... candidates are
- https://github.com/swc-project/swc/pull/7890
- https://github.com/swc-project/swc/pull/7876
- https://github.com/swc-project/swc/pull/7858
- https://github.com/swc-project/swc/pull/7856
- https://github.com/swc-project/swc/pull/7853
- https://github.com/swc-project/swc/pull/7832
2023-09-25 23:36:05 +00:00
강동윤 (Donny)
243d68d8dc
chore: Publish crates
2023-09-25 22:24:43 +09:00
Donny/강동윤
98d283cb34
chore: Publish v1.3.89
with swc_core
v0.83.22
( #8002 )
2023-09-25 13:24:09 +00:00
SWC Bot
5a94ff1083
chore: Publish crates
2023-09-25 04:04:09 +00:00
magic-akari
d91a554033
fix(es/compat): Skip function scope in block-scoped-fns
pass ( #7975 )
...
**Related issue:**
- Closes : #2793
2023-09-25 04:02:09 +00:00
SWC Bot
e146ff7d8e
chore: Publish crates
2023-09-25 01:42:53 +00:00
magic-akari
9c9a538f23
refactor(es/typescript): Reimplement TypeScript pass ( #7202 )
...
**Description:**
## Bugfixes
- Exported `let`/`var` declarations in TypeScript namespaces should be mutable.
- Fix missing declaration of complex exported patterns in TypeScript namespaces.
- Preserve concrete TS namespaces.
## New Features
- Introducing [Verbatim Module Syntax](https://www.typescriptlang.org/tsconfig#verbatimModuleSyntax ).
- Enum value will now be inlined whenever possible within a single module, optimizing runtime performance.
- Constant enums will be automatically eliminated when feasible, This can reduce bundle size.
- Added support for cross-referencing enum values.
## Deprecated
`TsEnumConfig` is deprecated
- The `treat_const_enum_as_enum` transform option is deprecated.
- The `ts_enum_is_readonly` assumption option is deprecated.
**BREAKING CHANGE:**
TypeScript Config is changed.
**Related issue:**
- Closes #5197
- Closes #5259
- Closes #7177
- Closes #7453
- Closes #7676
- Closes #7681
- Closes #7791
- Closes #7961
2023-09-25 01:41:00 +00:00
SWC Bot
bea10ef5f5
chore: Publish crates
2023-09-24 23:41:11 +00:00
Donny/강동윤
f374ad903a
fix(es): Enable resolver if jsc.baseUrl
is specified ( #7998 )
...
**Related issue:**
- Closes #7990
2023-09-24 23:39:12 +00:00
강동윤 (Donny)
489797f1cf
chore: Publish crates
2023-09-24 13:59:06 +09:00
Donny/강동윤
dff9e15b72
chore: Publish v1.3.88
with swc_core
v0.83.19
( #7997 )
2023-09-24 04:57:46 +00:00