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