Donny/강동윤
b8d2fb8546
feat(es/helpers): Import only used helpers ( #4767 )
2022-05-24 04:09:59 +00:00
Donny/강동윤
417b2182ce
fix(es/loader): Fix jsc.paths
on windows ( #4739 )
2022-05-22 20:12:22 +00:00
Donny/강동윤
9966e98ac6
fix(es/config): Respect .swcrc
( #4735 )
2022-05-21 23:18:43 +09:00
Donny/강동윤
ad309f4050
fix(es/config): Auto-detect tsx
( #4696 )
2022-05-18 10:21:45 +00:00
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 ExportAll
s ( #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 enum
s ( #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