Commit Graph

126 Commits

Author SHA1 Message Date
Donny/강동윤
53ff81ccd6
test(es): Add a test for merging configurations (#4617) 2022-05-11 07:08:52 +00:00
Donny/강동윤
3b2b8c4512
fix(es/config): Merge jsc.transform correctly (#4615) 2022-05-11 14:28:40 +09:00
Donny/강동윤
c68dec9448 chore: Publish v1.2.181 2022-05-10 04:52:51 +09:00
Donny/강동윤
7fc9bbccd9
feat(config): Make all configuration overridable (#4575) 2022-05-09 05:38:27 +00:00
즈눅
3ed1538bfe
fix(node/types): Add types for jsc.minify.format (#4492) 2022-05-01 03:46:13 +00:00
즈눅
b63cd53ca6
chore(node/types): Add unsafe to compress options (#4362) 2022-04-18 09:39:18 +00:00
Donny/강동윤
ba5f7436c1
chore(es/minifier): Add full benchmark for .minify() (#4341) 2022-04-15 22:31:15 +00:00
那里好脏不可以
37a8c90750
chore(*): Typo + fomatting (#4304) 2022-04-11 18:45:58 +00:00
Yorkie Liu
1a48732e78
fix(node-swc/types): Add isTypeOnly to types (#4303) 2022-04-11 13:04:37 +00:00
Alexander Akait
f39d3aca4d
feat(es/ast): Add raw to Num (#4245) 2022-04-05 12:46:35 +00:00
Alexander Akait
634d732803
feat(es/ast): Add raw to Str (#4071) 2022-03-22 07:54:08 +00:00
Donny/강동윤
61f1a37492
fix(es/codegen): Fix codes related to sourcemap (#4106) 2022-03-21 05:14:45 +00:00
OJ Kwon
5a2a6037d4
feat(node-swc): Embed target triple string (#4058) 2022-03-17 07:57:16 +00:00
Alexander Akait
bd444c0ceb
fix(es/codegen): Fix codegen of string literals (#4037) 2022-03-16 14:25:26 +00:00
Donny/강동윤
834cd4f7b6
fix(es/modules): Use correct span for ExportAlls (#4038) 2022-03-16 17:10:47 +09:00
Donny/강동윤
48f2fd8e1b
fix(es): Change error message as it can be misleading (#3982) 2022-03-12 14:32:00 +09:00
David Campion
c5a0c9a0ab
feat(es): Add an option to preserve all comments (#3815) 2022-03-11 07:25:59 +00:00
nikaple
70a68a7850
fix(node-swc/types): Add reserved to TerserMangleOptions (#3959) 2022-03-11 04:31:13 +00:00
Austaras
26abc6ba7e
refactor(es/ast): Remove useless fields in private property (#3868) 2022-03-05 23:51:04 +09:00
Austaras
6f076e4927
feat(es/transform): Unify logic for handling class properties (#3766) 2022-03-05 06:46:09 +00:00
Menci
bde7577098
fix(node-swc/types): Add a missing field of ExportNamedDeclaration (#3822) 2022-03-03 06:46:30 +00:00
Menci
4d123c3789
fix(node-swc): Fix handling of OptionalChainingExpression in Visitor (#3809) 2022-03-02 10:54:53 +00:00
OJ Kwon
ffb2ee85e6
fix(node-swc): Correctly close trace spans after completion (#3811) 2022-03-02 10:03:00 +00:00
OJ Kwon
b485a2fc26
build(node-swc): Rename entrypoint to avoid artifact collision (#3806) 2022-03-02 12:23:01 +09:00
OJ Kwon
95ecc013fe
fix(node-swc/cli): Correctly expose swcx entrypoint (#3784) 2022-03-01 08:41:45 +00:00
OJ Kwon
a454996314
feat(node-swc): Add experimental trace support in @swc/core (#3731) 2022-02-25 04:06:45 +00:00
magic-akari
1743302819
feat(es/typescript): Inline typescript enums (#3647) 2022-02-24 09:19:49 +00:00
OJ Kwon
2b5eba16c3
fix(node-swc/types): Fix experimental config options (#3603) 2022-02-17 05:41:51 +00:00
OJ Kwon
07485d372e
refactor(node-swc/types): Provide typed configuration for plugins (#3584) 2022-02-16 10:10:05 +00:00
Menci
bf68155e56
fix(node-swc/types): Change StringLiteral.has_escape to StringLiteral.hasEscape (#3581) 2022-02-16 14:39:30 +09:00
Donny/강동윤
3fc16cdc1c
doc(plugin): Fix typo (#3547) 2022-02-13 01:16:52 +09:00
LongYinan
9608605772
build(node-swc): Fix GLIBC < 2.18 compatible issues and android arm binary loading issue (#3314) 2022-01-20 02:21:24 +00:00
Austaras
f58b50bea7
refactor(es/ast): Change types of member-like expressions (#3178)
swc_ecma_ast:
 - Split `MemberExpr` into `MemberExpr` and `SuperPropExpr`.
 - Use `Box<Expr>` for `MemberExpr.obj`.
 - Use ad-hoc type for `MemberExpr.prop`.
 - Use ad-hoc type for `SuperPropExpr.prop`.
 - Use `Callee` instead of  `ExprOrSpread` for `CallExpr`.
 - Simplify types for meta property expressions.
2022-01-10 13:54:42 +00:00
Donny
e19fe7d33b chore(ci): Remove redudant plugin test 2022-01-06 18:01:08 +09:00
Donny
1dfc2ee105 fix(node-swc): Recover from ldd not found 2022-01-03 18:24:29 +09:00
Donny
29f05b55fc chore: Publish crates 2022-01-02 05:02:48 +09:00
Andreu Botella
c9adf03338
fix(es): Handle import assertions correctly (#3113)
swc_ecma_codegen:
 - Implement codegen for static import assertions.

swc_ecma_transforms_proposal:
  - `import_assertions`: Support `export`s.

swc:
 - Add `jsc.experimental.keep_import_assertions`.

node-swc:
 - Fix typo.
2021-12-28 11:18:33 +00:00
Idan Attias
054a19518c
fix(node-swc): Recover from ldd not found (#3125) 2021-12-27 17:05:36 +09:00
LongYinan
206da128a1
feat(node): Upgrade napi to v2 (#2958) 2021-12-24 02:21:24 +00:00
Yunfei He
bdea89dd95
type(node/swc): Allow null for NamedExportSpecifier.exported (#3010) 2021-12-11 16:23:41 +09:00
Alex Eagle
c02dd9935e
fix(node/swc): Allow using custom bindings (#2983) 2021-12-08 06:57:40 +00:00
Sukka
1f6d8302c1
fix(node/swc): Add baseUrl to JscConfig (#2968) 2021-12-04 19:19:07 +09:00
Donny/강동윤
91ef3cc16e
feat(plugin): Enable plugin support under experimental flag (#2894)
swc_plugin_runner:
 - Add plugin resolver.
 - Implement cache for resolver.
 - Add some integration tests.

swc:
 - Add a cargo feature named `plugin`.
 - Add an experimental option for plugins.

node:
 - Enable `plugin`.
 - Add some integration tests.
2021-11-28 17:02:14 +09:00
Sven
65d376a91b
feat(swc): Add IsModule (#2601)
swc:
 - Allow parsing input as a `Program`. (Closes #2541)
2021-11-16 10:31:02 +00:00
Donny/강동윤
3dc1e765e9
feat(swc): Provide &Program to pass creator (#2665)
swc:
 - Use `impl |prorgram: &Program| -> impl Fold` instead of `impl Fold`. (Closes https://github.com/swc-project/swc/issues/2664)
2021-11-06 18:05:10 +09:00
magic-akari
b6a5656f69
fix(node/types): Add es6 to ModuleConfig (#2648) 2021-11-04 11:43:48 +00:00
LongYinan
1a659d3214
ci: Sync to latest napi workflow (#2592) 2021-10-31 10:04:18 +09:00
zEh-
ef3c9a7422
chore: Fix typo (#2586) 2021-10-30 14:18:43 +09:00
Donny/강동윤
8494f6583c
fix(swc): Allow overriding specified parser config using .swcrc (#2547)
swc:
 - Merge parser config by enabling each feature. (#2546)
2021-10-26 22:39:06 +00:00
Sosuke Suzuki
ecd617af39
feat(es/transforms): Move class_properties to es2022 (#2512) 2021-10-23 23:25:14 +09:00