Commit Graph

4106 Commits

Author SHA1 Message Date
Donny/강동윤
9752b43f94
fix(es/minifier): Use unsafe option for arrow => method (#6521)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6504.
 - https://github.com/vercel/next.js/issues/43208.
2022-11-29 05:23:55 +00:00
SWC Bot
40cc78f384 chore: Publish crates 2022-11-29 04:53:35 +00:00
Donny/강동윤
27ae59e77b
fix(es/minifier): Make sequential inliner respect resolution order (#6509)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6491.
2022-11-29 04:50:15 +00:00
SWC Bot
c14acc1b14 chore: Publish crates 2022-11-29 04:15:55 +00:00
Donny/강동윤
b394f9f1d3
fix(es/minifier): Don't drop used variables from sequential inliner (#6520)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6510.
2022-11-29 04:12:11 +00:00
SWC Bot
08e1c50737 chore: Publish crates 2022-11-29 02:43:31 +00:00
Alexander Akait
e3cbe7e9a9
fix(html/parser): Fix parsing of cdata (#6534) 2022-11-29 02:39:48 +00:00
SWC Bot
5a9aab2392 chore: Publish crates 2022-11-28 16:00:01 +00:00
Donny/강동윤
b8fe04f720
feat(common): Add contexts to the error messages (#6526)
**Description:**

This PR makes the error reporter print contexts.

**Related issue:**

 - https://github.com/swc-project/swc/issues/6525.
2022-11-29 00:56:47 +09:00
SWC Bot
96a1f93e91 chore: Publish crates 2022-11-28 07:54:59 +00:00
Donny/강동윤
47908a49d3
perf(common): Fix perf bug of sourcemap for inputs with multi-byte chars (#6523)
**Description:**

This PR makes the source map generator cache the previous position instead of searching it from 0 every time.

**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6411.
2022-11-28 07:51:36 +00:00
SWC Bot
2d70c3088b chore: Publish crates 2022-11-28 04:57:40 +00:00
Donny/강동윤
cc4646a4cc
test(ts/compat): Migrate inline tests to fixture testing (#6475) 2022-11-28 04:54:38 +00:00
SWC Bot
3d58e37d86 chore: Publish crates 2022-11-28 02:53:35 +00:00
Donny/강동윤
5ff87afa78
test(es/transforms): Add tests about preserving top-level directives (#6518)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6508.
2022-11-28 02:50:26 +00:00
SWC Bot
70ed082ee4 chore: Publish crates 2022-11-27 04:43:13 +00:00
SWC Bot
f019c0210b chore: Publish crates 2022-11-25 11:31:34 +00:00
Donny/강동윤
0cee0e1af7
fix(es/visit): Visit TypeScript satisfies expressions (#6511) 2022-11-25 20:28:01 +09:00
SWC Bot
2ce5e2287a chore: Publish crates 2022-11-24 15:25:03 +00:00
Donny/강동윤
90aa6c8318
fix(es/react): Allow spread children (#6505)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/2037.
2022-11-24 15:21:51 +00:00
SWC Bot
bc61b0948a chore: Publish crates 2022-11-24 09:46:57 +00:00
HeYunfei
8d906b45e5
fix(es/minifier): Preserve classes with side effects in static fields (#6480) 2022-11-24 09:43:00 +00:00
SWC Bot
6fd97971c9 chore: Publish crates 2022-11-24 08:47:34 +00:00
HeYunfei
b3b5526be4
perf(es/helpers): Improve fast-path for helper detection (#6502) 2022-11-24 08:44:26 +00:00
SWC Bot
48bbebf5e9 chore: Publish crates 2022-11-22 08:44:17 +00:00
SWC Bot
b90ea8ab8f chore: Publish crates 2022-11-21 04:20:34 +00:00
SWC Bot
c6d33b3c58 chore: Publish crates 2022-11-21 01:41:47 +00:00
SWC Bot
0e67eaf892 chore: Publish crates 2022-11-21 00:57:06 +00:00
SWC Bot
553ba9c382 chore: Publish crates 2022-11-21 00:11:04 +00:00
magic-akari
1ca281a6cf
fix(es/codegen): Preserve parens for new in optional chaining (#6484) 2022-11-21 00:07:16 +00:00
SWC Bot
66b4966d60 chore: Publish crates 2022-11-20 23:40:48 +00:00
Austaras
c57307d002
refactor(es): Remove settings related to privateInObject (#6468) 2022-11-21 08:34:20 +09:00
SWC Bot
40ad709523 chore: Publish crates 2022-11-20 10:06:27 +00: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
SWC Bot
5a3ae502bb chore: Publish crates 2022-11-20 06:53:28 +00:00
SWC Bot
59954370cb chore: Publish crates 2022-11-20 00:30:30 +00:00
HeYunfei
9154bbc111
fix(es/minifier): Avoid dropping statements which has side-effects (#6476) 2022-11-20 00:26:52 +00:00
SWC Bot
a4ed624f81 chore: Publish crates 2022-11-18 07:56:33 +00:00
Donny/강동윤
15ad2c2568
fix(es/minifier): Abort inliner on fn declarations used multiple time (#6473)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6463.
2022-11-18 07:53:13 +00:00
SWC Bot
e45c66535c chore: Publish crates 2022-11-18 07:19:26 +00:00
Alexander Akait
3e702b9804
fix(es/parser): Fix parsing of regexp (#6469)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6322.
 - Closes https://github.com/swc-project/swc/issues/6323.
2022-11-18 07:16:22 +00:00
SWC Bot
d78c5452ea chore: Publish crates 2022-11-18 06:38:53 +00:00
Donny/강동윤
072bd13023
fix(es/modules): Remove wrong check for jsc.paths (#6470)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6466.
2022-11-18 06:35:49 +00:00
SWC Bot
e8b0b1c344 chore: Publish crates 2022-11-18 06:01:51 +00:00
Donny/강동윤
ca20d94a74
fix(es/lints): Revert check for reassignment to classes (#6472)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6471.
2022-11-18 05:58:48 +00:00
SWC Bot
19b45d299f chore: Publish crates 2022-11-18 03:26:21 +00:00
Alexander Akait
3a0d98b6e9
fix(xml/parser): Fix parsing of comments (#6449) 2022-11-18 03:22:13 +00:00
SWC Bot
84c0215822 chore: Publish crates 2022-11-18 02:36:31 +00:00
Alexander Akait
7f6bf59a98
feat(html/minifier): Use the latest EsVersion (#6453) 2022-11-18 02:32:55 +00:00
SWC Bot
e055d2c4f8 chore: Publish crates 2022-11-18 01:24:23 +00:00