Commit Graph

57 Commits

Author SHA1 Message Date
Donny/강동윤
85d6e9be07
fix(es/module): Revert ()
**Description:**

I'm reverting  because it caused a regression in next.js CI.
https://github.com/vercel/next.js/pull/54653


**Related issue:**

 - Reverts .
2023-09-01 14:24:50 +09:00
Donny/강동윤
c714dd20de
fix(es/module): Make jsc.paths fully resolve TypeScript files ()
**Related issue:**

 - Closes 
 - Closes 
2023-08-31 07:24:12 +00:00
Donny/강동윤
5fbc251db1
fix(es/module): Don't create absolute paths for jsc.paths on Windows ()
**Related issue:**

 - Closes 
2023-08-30 10:11:34 +00:00
Donny/강동윤
71d01ec127
feat(es): Add an option to disable builtin transforms () 2023-08-26 01:12:36 +00:00
Donny/강동윤
11ebae1bdd
fix(es/module): Don't resolve as node_modules from TscResolver ()
**Related issue:**

 - Closes 
2023-08-25 22:46:53 +09:00
Donny/강동윤
d33a97303c
fix(es/module): Make jsc.paths work for a nest.js app () 2023-08-25 15:05:43 +09:00
Donny/강동윤
5c4bfa61f9
fix(es/module): Use jsc.baseUrl while resolving absolute paths ()
**Related issue:**

 - Closes 
2023-08-09 13:58:45 +09:00
David Sherret
064bcf4854
fix(es/codegen): Remove extra spaces in AssignPatProp and KeyValuePatProp ()
Co-authored-by: Donny/강동윤 <kdy1997.dev@gmail.com>
2023-06-07 05:08:35 +00:00
magic-akari
38dfb91ebc
fix(es/helpers): Remove unnecessary parameters in helper_expr! macro ()
**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 () 2023-04-15 13:57:00 +00:00
magic-akari
a13a78e3fe
feat(es/helpers): Use named export and unify import path ()
**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 ()
**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/강동윤
873e532f91
chore: Publish v1.3.38 () 2023-03-06 09:30:21 +00:00
Donny/강동윤
05d185d59b
fix(es/modules): Fix jsc.paths ()
**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 () 2022-11-07 03:56:15 +00:00
Donny/강동윤
de036754c4
test(es/preset-env): Ensure custom transforms are working ()
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/5052
2022-10-21 07:53:45 +00:00
Donny/강동윤
e9f4f4eb06
chore: Publish v1.3.1 () 2022-09-14 17:24:15 +09:00
Donny/강동윤
46aa86f5f8
chore: Publish v1.2.245 2022-08-30 13:01:04 +09:00
Donny/강동윤
14894ed4c9
fix(atoms): Workaround a bug of rkyv () 2022-07-28 11:41:15 +09:00
Donny/강동윤
ff949b0bc7 chore(ci): Disable some tests 2022-07-14 20:01:35 +09:00
magic-akari
4d5783d9cd
feat(es/modules): Add pure annotations to interop functions () 2022-07-03 05:54:07 +00:00
magic-akari
9e162dcbae
fix(es/modules): Improve compatibility with cjs lexer () 2022-07-01 08:37:04 +00:00
magic-akari
2cc229e6fb
feat(es/modules): Optimize a dynamic import with a literal path () 2022-06-28 06:31:24 +00:00
magic-akari
fa68cbd74a
refactor(es/module): Implement new module transformer () 2022-06-27 12:32:06 +00:00
Donny/강동윤
c31b0a38ea
chore(ci): Fix CI () 2022-05-24 23:39:08 +09:00
Donny/강동윤
b8d2fb8546
feat(es/helpers): Import only used helpers () 2022-05-24 04:09:59 +00:00
Donny/강동윤
417b2182ce
fix(es/loader): Fix jsc.paths on windows () 2022-05-22 20:12:22 +00:00
Donny/강동윤
9966e98ac6
fix(es/config): Respect .swcrc () 2022-05-21 23:18:43 +09:00
Donny/강동윤
ad309f4050
fix(es/config): Auto-detect tsx () 2022-05-18 10:21:45 +00:00
Donny/강동윤
53ff81ccd6
test(es): Add a test for merging configurations () 2022-05-11 07:08:52 +00:00
Donny/강동윤
3b2b8c4512
fix(es/config): Merge jsc.transform correctly () 2022-05-11 14:28:40 +09:00
Donny/강동윤
7fc9bbccd9
feat(config): Make all configuration overridable () 2022-05-09 05:38:27 +00:00
那里好脏不可以
37a8c90750
chore(*): Typo + fomatting () 2022-04-11 18:45:58 +00:00
Alexander Akait
f39d3aca4d
feat(es/ast): Add raw to Num () 2022-04-05 12:46:35 +00:00
Alexander Akait
634d732803
feat(es/ast): Add raw to Str () 2022-03-22 07:54:08 +00:00
Donny/강동윤
834cd4f7b6
fix(es/modules): Use correct span for ExportAlls () 2022-03-16 17:10:47 +09:00
Donny/강동윤
8494f6583c
fix(swc): Allow overriding specified parser config using .swcrc ()
swc:
 - Merge parser config by enabling each feature. ()
2021-10-26 22:39:06 +00:00
Donny/강동윤
ecf0d7507c
feat(swc): Allow removing filename from error output ()
swc:
 - Add an option to exclude filename from error messages.
2021-10-21 04:45:12 +00:00
Donny/강동윤
2ca6e5d79b
feat(es/transforms/optimization): Support inlining of typeofs ()
swc_ecma_transforms_optimization:
 - `inline_globals`: Support inlining of `typeof`s.

swc:
 - Change error message for parsing failure to mention `Syntax Error`.
2021-10-19 09:49:18 +00:00
Donny/강동윤
ee880d63ae
fix(swc): Change default value of inlineSourcesContent ()
swc:
 - Make `inlineSourcesContent` `true` by default. ()
2021-10-19 06:37:58 +00:00
Donny/강동윤
9ba68c6863
fix(common): Fix sourcemap ()
swc_common:
 - Include the index to the name in `mappings` of a sourcemap.

swc:
 - Fix handling of `inputSourceMap`.
2021-10-18 06:43:59 +00:00
Donny/강동윤
1b2e6706bd
fix(swc): Fix simple bugs ()
swc:
 - Ensure that  is not the case. ()

node_swc:
 - Verify `sourceMaps: true` in `.swcrc`. (, )
2021-09-23 08:10:12 +00:00
강동윤
48d61039d2
fix(common, node/swc): Allow inlining sourcesContent ()
swc_common:
 - Allow setting `sourceContents` of source map files. ()

swc:
 - Support `inlineSourceContents`. ()
2021-09-14 02:31:32 +00:00
강동윤
cb2b0c671f
fix(es/transforms/base): Optimize hygiene ()
swc_ecma_transforms_base:
 - `hygiene`: Don't rename if not required. ()

swc_ecma_minifier:
 - Remove `hygiene_optimizer`.
2021-09-01 13:11:55 +00:00
강동윤
9793926cc8
fix(es/minifier): Fix bugs and implement more rules ()
swc_ecma_minifier:
 - Fix an infinite loop. ()
 - Don't remove span hygiene. ()

swc_ecma_codegen:
 - Fix codegen of `return` with `async` arrow. ()

swc:
 - Respect `minify = false`. ()
2021-08-08 14:19:04 +00:00
OJ Kwon
abb1451061
fix(node/swc): Allow specifying filename when parsing () 2021-08-08 20:14:45 +09:00
강동윤
f44e25c3af
fix(es/minifier): Improve output of minifier ()
swc_common:
 - Add `Span.has_mark`.

swc_ecma_codegen:
 - Emit `1e3` for `1000`.
 - Optimize output. ()

swc_ecma_minifier:
 - name mangler: Don't use keywords as an id.
 - `properties`: Optimize member expression with string properties.
 - `inline`: Inline some function expressions even if it's not fn-local.
 - `analyzer`: Track reassignment correctly.
 - `analyzer`: Track fn-local correctly.
 - `sequences`: Inject `void` if required.
 - `inline`: Inline function declarations correctly.
 - `sequences`: Merge expressions into test of if statements.
 - `sequences`: Reduce calls to an assigned variable.
 - Use `Marks` instead of `&dyn Comments`.


swc_ecma_transforms_optimization:
 - `expr_simplifier`: Fix infinite loops.

node/swc:
 - Ensure that `.transform` performs minification. ()
2021-08-04 00:52:47 +09:00
강동윤
4db24fb7f6
fix(swc): Fix various bugs ()
swc_ecma_transforms_module:
 - Change the order of functions exported as default. ()
 - Handle mixed imports correctly. ()

swc:
 - Ensure that  is fixed. ()
2021-04-18 20:58:30 +00:00
Arend van Beelen jr
228429c7bb
fix(node-swc): Fix handling of tagged template expressions in Visitor () 2021-04-06 15:22:05 +09:00
강동윤
dcdac2db6f
fix(swc): Fix bugs ()
swc_ecma_transforms_typescript:
  - Add option to use define propert for `strip` pass. ()

node-swc:
  - Fix `keepClassNames`. ()
2021-03-17 15:24:35 +09:00