Commit Graph

215 Commits

Author SHA1 Message Date
magic-akari
caee073935
feat(es/module): Add export_interop_annotation flag (#7330)
**Related issue:**

 - https://github.com/vercel/next.js/issues/48801
2023-04-25 10:04:28 +00:00
voorjaar
761ef8389d
fix(bindings/node): Support TsSatisfiesExpression (#7317) 2023-04-24 12:26:13 +09:00
magic-akari
38dfb91ebc
fix(es/helpers): Remove unnecessary parameters in helper_expr! macro (#7296)
**Description:**

We have moved to snake_case, so the last parameter of helper_expr is unnecessary.
2023-04-20 08:26:34 +00:00
Donny/강동윤
5d3313aa7e
feat(es/modules): Use function instead of arrow function unconditionally (#7273) 2023-04-15 13:57:00 +00:00
Donny/강동윤
695ce060e9
test(es/plugin): Enable E2E test again (#7236) 2023-04-10 07:01:56 +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
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
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
Donny/강동윤
a785f18740
test(es/plugin): Enable E2E plugin test (#7178) 2023-03-31 04:01:17 +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
Donny/강동윤
12546c853a
build(cargo): Revert rustc upgrade (#7162)
**Description:**

The `rkyv` bug is not fixed.
2023-03-29 17:48:45 +09: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
Ivan Zakharchanka
a4d1af18de
fix(bindings/node): Fix loading of spack.config.js (#7105) 2023-03-21 08:04:55 +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
Chen Yangjian
00869147d3
fix(es/minifier): Accept keep_fnames and keep_classnames (#7090) 2023-03-16 09:38:06 +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
Donny/강동윤
873e532f91
chore: Publish v1.3.38 (#7018) 2023-03-06 09:30:21 +00:00
Chen Yangjian
30cff01656
fix(bindings/node): Fix visitBindingIdentifier (#7000) 2023-03-03 02:03:54 +00:00
Donny/강동윤
d5c0dec40c
fix(bindings/node): Treat .cts and .mts as input by default (#6959)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6958.
2023-02-18 11:42:46 +00:00
Daiki Nishikawa
82128e3734
fix(bindings/node): Add esnext to JscTarget (#6908)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6904.
2023-02-07 03:43:37 +00:00
AsPulse
964dfbaf1a
fix(bindings): Don't require unnecessary package (#6902) 2023-02-05 19:48:15 +00:00
Donny/강동윤
ff78b8f7e0
feat(es/ast): Add EsNext to EsVersion (#6816) 2023-01-15 15:43:10 +09:00
Donny/강동윤
1c6fe35313
chore: Publish v1.3.26 (#6787) 2023-01-11 08:40:40 +00:00
Donny/강동윤
6c126da1d4
test(es): Add a test for a fixed source map issue (#6768)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6244.
2023-01-09 06:25:03 +00:00
OJ Kwon
30dd65bb83
feat(bindings): Remove swcx from @swc/core (#6720) 2022-12-30 06:31:57 +00:00
Sukka
7e841a5d30
fix(node-swc): Add missing const_to_let to the type (#6615) 2022-12-11 09:01:05 +00:00
meskill
b97aa45c5c
fix(node-swc): Sync types for jsc.optimizer.globals (#6603) 2022-12-09 09:15:02 +09:00
Alexander Akait
08a9e21b36
feat(es/codegen): Skip whitespaces for comments in minify mode (#6465)
Co-authored-by: Donny/강동윤 <kdy1997.dev@gmail.com>
2022-11-20 10:03:26 +00:00
Donny/강동윤
05d185d59b
fix(es/modules): Fix jsc.paths (#6454)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6446.
2022-11-16 04:51:59 +00:00
Daiki Nishikawa
f6faeb3bad
fix(es/parser): Fix parsing of TS satisfies expressions (#6354) 2022-11-07 03:56:15 +00:00
Donny/강동윤
de036754c4
test(es/preset-env): Ensure custom transforms are working (#6227)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/5052
2022-10-21 07:53:45 +00:00
Arnaud Barré
2bafd53e96
chore(bindings): Fix type (#6184) 2022-10-21 14:08:36 +09:00
Donny/강동윤
fee747de59 chore(ci): Fix publish action by reverting #5969 2022-10-06 16:36:01 +09:00
RiESAEX
8fea8ca3fa
fix(bindings): Fix type definitions (#6018) 2022-10-02 10:24:09 +00:00
Donny/강동윤
10fb645552
chore(ci): Merge CI scripts (#5999)
**Description:**

This PR merges CI scripts, and make integration tests use patched crates.

**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/5540.
2022-09-30 16:57:15 +09:00
OJ Kwon
af64217f19
build(cargo): Introduce workspace deps (#5997) 2022-09-30 13:43:32 +09:00
Donny/강동윤
fbc09d0cba
chore: Publish v1.3.4 (#5998) 2022-09-30 12:47:00 +09:00
OJ Kwon
ca38a7027e
test(es/plugin): Reenable compat test (#5969) 2022-09-28 10:54:51 +09:00
Donny/강동윤
21cbc0d561
chore: Publish v1.3.3 (#5942) 2022-09-23 17:51:57 +09:00
Donny/강동윤
e9f4f4eb06
chore: Publish v1.3.1 (#5854) 2022-09-14 17:24:15 +09:00
Sukka
9d1629369b
fix(node-swc): Fix the type definition of jsc.paths (#5811) 2022-09-10 10:43:37 +00:00
Donny/강동윤
6fde98217b
chore: Publish v1.2.249 (#5782) 2022-09-08 16:17:11 +09:00
OJ Kwon
81ab8a29e3
test(es/plugin): Add E2E test for the published plugins (#5771) 2022-09-07 02:05:42 +00:00
Donny/강동윤
46aa86f5f8
chore: Publish v1.2.245 2022-08-30 13:01:04 +09:00
OJ Kwon
a3e855f720
feat(es/plugin): Provide swc_core diagnostic from plugin (#5591) 2022-08-22 23:48:50 +00:00
OJ Kwon
496346ac04
refactor(bindings): Use separate workspace for bindings (#5506) 2022-08-16 15:01:49 +09:00
OJ Kwon
ff7f6f63f9
fix(es/plugin): Share SourceFile for plugin transforms (#5475) 2022-08-15 00:45:19 +00:00
OJ Kwon
9d04f24c26
feat(node): Use published version of swc_core for node binding (#5481) 2022-08-14 01:15:56 +00:00
Donny/강동윤
c918975967
fix(es/plugin): Revert rustc upgrade to workaround a bug of rkyv (#5476) 2022-08-13 15:38:09 +09:00
Donny/강동윤
3eb1f4b2b1
chore(ci): Fix lints (#5462) 2022-08-12 13:13:35 +00:00