Commit Graph

2884 Commits

Author SHA1 Message Date
SWC Bot
d5d1ff6417 chore: Publish crates 2022-07-12 15:25:48 +00:00
HeYunfei
1ef541eec4
feat(es/codegen): Emit comments in emit_module (#5132) 2022-07-12 15:23:24 +00:00
Donny/강동윤
b433b69263 chore: Publish crates 2022-07-12 23:58:30 +09:00
SWC Bot
2f7da66ee4 chore: Publish crates 2022-07-12 11:29:34 +00:00
Donny/강동윤
4744d438a9
feat(visit): Improve API (#5185)
- Rename `AstKind` to `AstParentKind`.
 - Add `kind()` to `AstNodeRef`.
 - Reduce generic arguments of `AstNodePath`.
 - Remove `Opt*` from `AstParentKind` and `AstNodeRef`.
 - Add field enum for structs.
 - Add field enum for enums.
 - Change `Vec*` to a child kind.
 - Add field for the child field to `AstParentKind`.
 - Add field for the child field to `AstNodeRef`.
2022-07-12 11:26:51 +00:00
OJ Kwon
a4b14c3806
test(node): Refactor tests (#5187) 2022-07-12 05:35:44 +00:00
SWC Bot
13083773fb chore: Publish crates 2022-07-12 05:10:12 +00:00
Alexander Akait
60ca5538f9
fix(html/codegen): Fix source map generation (#5184) 2022-07-12 05:08:10 +00:00
SWC Bot
e15fe530fb chore: Publish crates 2022-07-12 03:14:47 +00:00
Alexander Akait
5b70233400
fix(css/codegen): Fix sourcemap of multibyte characters (#5183) 2022-07-12 03:12:32 +00:00
SWC Bot
710630fc23 chore: Publish crates 2022-07-12 02:45:27 +00:00
Alexander Akait
7b28521d72
fix(css/parser): Avoid skipping whitespaces if not required (#5181) 2022-07-12 11:43:24 +09:00
SWC Bot
55cd0803e9 chore: Publish crates 2022-07-11 13:11:13 +00:00
Alexander Akait
dada2d7d55
feat(html/minifier): Allow specifying options for other tools (#5125) 2022-07-11 13:08:40 +00:00
Donny/강동윤
cbabc77ca3 chore: Publish v1.2.212 2022-07-11 20:43:35 +09:00
SWC Bot
c21ffbef2c chore: Publish crates 2022-07-11 11:39:30 +00:00
Donny/강동윤
d8f57abd26
perf(es/minifier): Remove wrong logic (#5178) 2022-07-11 11:37:13 +00:00
SWC Bot
0a13105e84 chore: Publish crates 2022-07-11 09:00:07 +00:00
magic-akari
56ad09afb2
fix(es/modules): Keep TDZ for export default if possible (#5164) 2022-07-11 08:57:50 +00:00
SWC Bot
b87e3b0d4f chore: Publish crates 2022-07-11 02:20:08 +00:00
magic-akari
997240cfe6
fix(es/modules): Add the missing span for export default (#5170) 2022-07-11 02:18:01 +00:00
SWC Bot
0a8568c527 chore: Publish crates 2022-07-11 01:46:15 +00:00
OJ Kwon
f167198470
feat(plugin/macros): Export new interface for getting plugin schema version (#5166) 2022-07-11 01:44:00 +00:00
Donny/강동윤
793c423a24 chore: Publish crates 2022-07-10 00:57:16 +09:00
SWC Bot
2bd5b4413a chore: Publish crates 2022-07-09 10:17:04 +00:00
Donny/강동윤
ac3a55a435
feat(visit): Add index to AstKind (#5138)
- Make `VisitAstPath` take `AstNodePath<AstKind, AstNodeRef>`.
 - Add index to `AstKind::Vec*`.
2022-07-09 10:15:12 +00:00
Donny/강동윤
0f45b8ee16 chore: Publish v1.2.211 2022-07-09 18:03:00 +09:00
SWC Bot
bb36600685 chore: Publish crates 2022-07-09 05:35:11 +00:00
magic-akari
2555d71a60
fix(es/modules): Handle top level this, really (#5160) 2022-07-09 05:33:14 +00:00
SWC Bot
6f8529e107 chore: Publish crates 2022-07-09 04:44:13 +00:00
Alexander Akait
d6a827d173
feat(css/minifier): Compress hwb color (#5155) 2022-07-09 04:42:13 +00:00
SWC Bot
5ea2e75281 chore: Publish crates 2022-07-09 04:21:11 +00:00
Alexander Akait
01bfe46019
feat(html): Add raw for text (#5148) 2022-07-09 04:19:14 +00:00
SWC Bot
358f6552d7 chore: Publish crates 2022-07-09 03:49:46 +00:00
David Sherret
bbbe0b6e94
fix(sourcemap): Handle multi-byte characters correctly (#5153) 2022-07-09 03:47:52 +00:00
SWC Bot
2e79942051 chore: Publish crates 2022-07-09 03:20:08 +00:00
Alexander Akait
8bc9a40c99
feat(html/minifier): Compress default attributes for svg (#5150) 2022-07-09 03:17:48 +00:00
SWC Bot
4b48f3f1ae chore: Publish crates 2022-07-09 02:32:07 +00:00
magic-akari
451f346af0
fix(es/modules): Handle top level this (#5159) 2022-07-09 02:30:01 +00:00
SWC Bot
8b62d47eb1 chore: Publish crates 2022-07-08 06:29:34 +00:00
Austaras
cd8d65b9a7
fix(es/compat): Remove extra this/arguments capture in arrows (#5152) 2022-07-08 06:27:15 +00:00
SWC Bot
c41769f99c chore: Publish crates 2022-07-08 06:04:50 +00:00
OJ Kwon
e8214babf5
refactor(plugin): Refactor transform executor (#5147) 2022-07-08 06:02:42 +00:00
SWC Bot
07ffb76793 chore: Publish crates 2022-07-08 05:40:45 +00:00
Alexander Akait
714ff5321d
feat(css/minifier): Compress hsl colors (#5142) 2022-07-08 05:38:44 +00:00
SWC Bot
de484bf98a chore: Publish crates 2022-07-08 01:40:13 +00:00
OJ Kwon
4f87396b3b
fix(cli): Constructs config file correctly (#5146) 2022-07-08 01:37:46 +00:00
SWC Bot
d4c9e70e39 chore: Publish crates 2022-07-08 00:57:00 +00:00
magic-akari
93513031b5
fix(es/compat): Optimize for-of loops for array literals (#5141) 2022-07-08 00:54:53 +00:00
SWC Bot
1c75c4ad97 chore: Publish crates 2022-07-07 08:12:10 +00:00
Donny/강동윤
76de911466
doc(visit): Add docs for visitors (#5137) 2022-07-07 17:09:38 +09:00
SWC Bot
297228a690 chore: Publish crates 2022-07-07 07:48:49 +00:00
OJ Kwon
82fbe15a57
feat(plugin): Wrap serialized struct with a version (#5128) 2022-07-07 07:46:49 +00:00
SWC Bot
09d4aa4a0d chore: Publish crates 2022-07-07 07:25:22 +00:00
三丝
9d4be11f2e
doc(es/parser): Typo (#5136) 2022-07-07 07:23:21 +00:00
SWC Bot
b21cccfea2 chore: Publish crates 2022-07-07 06:18:45 +00:00
Donny/강동윤
f26d59b770
feat(visit): Implement more traits for AstKind (#5135) 2022-07-07 06:16:24 +00:00
SWC Bot
e874060959 chore: Publish crates 2022-07-07 05:39:05 +00:00
Donny/강동윤
46b1b42c3c
feat(visit): Implement Eq for AstKind (#5133) 2022-07-07 05:36:55 +00:00
SWC Bot
40dabaddfd chore: Publish crates 2022-07-07 04:38:01 +00:00
Edwin Coronado
2d94797975
feat(es/parser): Support d in regex flag for es2022 (#5127) 2022-07-07 04:35:49 +00:00
SWC Bot
d1b99a2a52 chore: Publish crates 2022-07-07 04:08:34 +00:00
magic-akari
a0ec3705a4
fix(es/lints): Handle import-require duplicate bindings (#5131) 2022-07-07 04:06:37 +00:00
SWC Bot
fa37781750 chore: Publish crates 2022-07-06 15:52:42 +00:00
Alexander Akait
f813a60497
feat(html/minifier): Sort attributes (#4784) 2022-07-06 15:50:23 +00:00
SWC Bot
70bfbfba44 chore: Publish crates 2022-07-06 07:53:08 +00:00
magic-akari
fbfca36f58 fix(es/parser): Support type-only export-import declarations (#5122) 2022-07-06 16:51:18 +09:00
SWC Bot
43744c9eed chore: Publish crates 2022-07-06 05:20:40 +00:00
magic-akari
dd39a798ae
fix(es/compat): Preserve more class names (#5106) 2022-07-06 05:18:40 +00:00
SWC Bot
9385103649 chore: Publish crates 2022-07-06 04:44:10 +00:00
OJ Kwon
2ba8b39fa0
refactor(common): Bikeshed plugin apis (#5120) 2022-07-06 04:42:00 +00:00
SWC Bot
64ccb589b7 chore: Publish crates 2022-07-06 03:55:25 +00:00
Donny/강동윤
0e4a03ccc6
fix(es/minifier): Don't inline a callable expression if it's used as a reference (#5118) 2022-07-06 03:53:11 +00:00
SWC Bot
9f64f5d8a0 chore: Publish crates 2022-07-05 22:11:47 +00:00
magic-akari
f952a6161c
feat(es/typescript): Follow TypeScript error report (#5114) 2022-07-05 22:08:55 +00:00
Donny/강동윤
fa66ee86e5 chore: Publish v1.2.210 2022-07-06 01:37:57 +09:00
SWC Bot
8342497c82 chore: Publish crates 2022-07-05 16:36:36 +00:00
Austaras
bef8aebdea
fix(es/lints): Allow overload in typescript (#5116) 2022-07-06 01:33:58 +09:00
SWC Bot
5a5cfb7e86 chore: Publish crates 2022-07-05 10:52:11 +00:00
Austaras
528d4c5aa4
fix(es/fixer): Preserve parens in more opt calls (#5111) 2022-07-05 10:49:05 +00:00
SWC Bot
ce3186d6e0 chore: Publish crates 2022-07-05 10:25:08 +00:00
Donny/강동윤
b76b4999cc
fix(es/codegen): Fix codegen of some non-ascii characters (#5108) 2022-07-05 10:22:25 +00:00
SWC Bot
a049d7481d chore: Publish crates 2022-07-05 09:57:54 +00:00
magic-akari
3e3c44a0b6
fix(es/fixer): Preserve parens in opt calls (#5110) 2022-07-05 09:55:21 +00:00
SWC Bot
469b2fe4e4 chore: Publish crates 2022-07-05 07:28:41 +00:00
Donny/강동윤
8ea631c766
doc(visit): Generate rustdoc (#5107) 2022-07-05 07:26:01 +00:00
Donny/강동윤
def38aac63 chore: Publish v1.2.209 2022-07-05 15:12:50 +09:00
SWC Bot
e4496301a9 chore: Publish crates 2022-07-05 06:06:47 +00:00
Alexander Akait
5932a0a2ef
fix(html/minifier): Fix bugs of the smart mode (#5093) 2022-07-05 06:04:12 +00:00
SWC Bot
09d7f7aa27 chore: Publish crates 2022-07-05 05:41:14 +00:00
magic-akari
c531e67a30
fix(es/modules): Support lazy for export from (#5103) 2022-07-05 05:38:34 +00:00
Donny/강동윤
97aa09eaa2 chore: Publish crates 2022-07-05 14:17:30 +09:00
SWC Bot
198aa2d323 chore: Publish crates 2022-07-05 05:07:28 +00:00
Austaras
9519e801ea
fix(es/resolver): Fix handling of block scoped functions (#5092) 2022-07-05 05:04:49 +00:00
SWC Bot
6d6e4dd096 chore: Publish crates 2022-07-05 04:41:07 +00:00
Donny/강동윤
204d742ed6
feat(visit): Add path-aware variants (#5073) 2022-07-05 04:38:27 +00:00
SWC Bot
a27c14357c chore: Publish crates 2022-07-04 14:39:41 +00:00
Austaras
adbb0bf8d8
fix(es/compat): Preserve class names (#5104) 2022-07-04 14:37:03 +00:00
SWC Bot
f71ca10882 chore: Publish crates 2022-07-04 11:58:23 +00:00
magic-akari
cc555ef225
fix(es/react): Don't panic on invalid react pragma (#5101) 2022-07-04 11:55:08 +00:00
SWC Bot
b79593f7ef chore: Publish crates 2022-07-04 04:20:47 +00:00
magic-akari
ddb31d1fd7
feat(es/modules): Support AMD triple slash directives (#5091) 2022-07-04 04:17:34 +00:00
SWC Bot
04c4af8475 chore: Publish crates 2022-07-04 03:52:29 +00:00
magic-akari
8df6e047cc
fix(es/codegen): Emit numeric value for Binary and Octal literals (#5083) 2022-07-04 03:49:52 +00:00
SWC Bot
68c049c8a0 chore: Publish crates 2022-07-03 17:16:30 +00:00
magic-akari
f7d857c6b6
fix(es/lints): Cover more const-assign cases (#5098) 2022-07-03 17:13:55 +00:00
SWC Bot
162671ce32 chore: Publish crates 2022-07-03 05:56:40 +00:00
magic-akari
4d5783d9cd
feat(es/modules): Add pure annotations to interop functions (#5087) 2022-07-03 05:54:07 +00:00
magic-akari
52bfb18113
test(es/modules): Add test for string-names (#5088) 2022-07-03 04:38:48 +00:00
SWC Bot
0df200f786 chore: Publish crates 2022-07-03 04:17:53 +00:00
Alexander Akait
5ac5ae200c
fix(html/minifier): Small fix (#5079) 2022-07-03 04:14:51 +00:00
SWC Bot
279d4a39c1 chore: Publish crates 2022-07-03 03:47:38 +00:00
magic-akari
0a7ca2f4bb
fix(es/modules): Create an indirect call for a lazy require (#5089) 2022-07-03 03:44:56 +00:00
SWC Bot
55d71bf9fc chore: Publish crates 2022-07-02 04:48:04 +00:00
Austaras
b62fd3e6cc
feat(es/parser): Support labelled function from annex B (#5078) 2022-07-02 04:45:22 +00:00
SWC Bot
4da97e9d4a chore: Publish crates 2022-07-02 04:20:10 +00:00
magic-akari
9addef6fc8
feat(es/modules): Support allowTopLevelThis (#5086) 2022-07-02 04:17:44 +00:00
SWC Bot
f5447cd1b1 chore: Publish crates 2022-07-02 03:53:10 +00:00
magic-akari
de66b64aed
fix(es/compat): Preserve spans in object_rest_spread (#5082) 2022-07-02 03:50:30 +00:00
SWC Bot
586228106b chore: Publish crates 2022-07-02 03:27:59 +00:00
Alexander Akait
cb845c9bf9
feat(html/minifier): Remove empty metadata elements (#5085) 2022-07-02 03:25:23 +00:00
SWC Bot
8c4296173a chore: Publish crates 2022-07-01 13:20:29 +00:00
magic-akari
2f2039c693
fix(es/modules): Preserve orders of exports (#5081) 2022-07-01 13:17:43 +00:00
Donny/강동윤
bb2ba85896 chore: Publish v1.2.208 2022-07-01 21:52:11 +09:00
SWC Bot
a700b4ab5f chore: Publish crates 2022-07-01 08:39:48 +00:00
magic-akari
9e162dcbae
fix(es/modules): Improve compatibility with cjs lexer (#5080) 2022-07-01 08:37:04 +00:00
SWC Bot
8aaf25f5e7 chore: Publish crates 2022-07-01 03:53:32 +00:00
Alexander Akait
144314dcc2
feat(html/minifier): Improve collapse_whitespaces (#5070) 2022-07-01 03:50:49 +00:00
Donny/강동윤
1b57c6fe98 chore: Publish crates 2022-07-01 12:28:49 +09:00
magic-akari
1e33dbab24
feat(es/modules): Support node interop (#5069) 2022-07-01 03:28:03 +00:00
Donny/강동윤
0fc3b51e07 chore: Publish crates 2022-07-01 12:00:49 +09:00
Donny/강동윤
60424db67b chore: Workaround cargo mono bug 2022-07-01 12:00:04 +09:00
Donny/강동윤
c2c923e205 chore: Publish crates 2022-07-01 11:50:45 +09:00
SWC Bot
d09bdfb183 chore: Publish crates 2022-07-01 02:39:59 +00:00
Alexander Akait
214c60a313
fix(html/minifier): Minify meta element (#5075) 2022-07-01 02:37:17 +00:00
SWC Bot
ff75f8136f chore: Publish crates 2022-06-30 01:49:17 +00:00
Alexander Akait
26cfeff79c
feat(html/minifier): Sort unordered values in attributes (#5035) 2022-06-30 01:46:24 +00:00
SWC Bot
3eefa63792 chore: Publish crates 2022-06-30 01:23:58 +00:00
OJ Kwon
e1aa937183
feat(plugin): Allow taking the inner data from versioned (#5071) 2022-06-30 01:21:12 +00:00
SWC Bot
dcc4f2a706 chore: Publish crates 2022-06-29 12:33:43 +00:00
Alexander Akait
e9bad20898
fix(html/minifier): Fix smart mode (#5058) 2022-06-29 12:30:28 +00:00
SWC Bot
93cd38d113 chore: Publish crates 2022-06-29 12:06:20 +00:00
Donny/강동윤
34f4f5a3bc
feat(atoms): Improve atoms (#5066) 2022-06-29 12:02:33 +00:00
SWC Bot
1a6997fb49 chore: Publish crates 2022-06-29 11:29:36 +00:00
magic-akari
ef543b1b22
fix(es/modules): Handle this in class methods (#5065) 2022-06-29 11:27:06 +00:00
SWC Bot
73874486b2 chore: Publish crates 2022-06-29 11:05:08 +00:00
Alexander Akait
37eb366a1f
feat(es/parser): Add allow_return_outside_function to options (#5046) 2022-06-29 11:02:05 +00:00
SWC Bot
b364828a3c chore: Publish crates 2022-06-29 04:11:28 +00:00
Donny/강동윤
2e139f1441
perf(atoms): More groundwork for replacing JsWord with Atom (#5064) 2022-06-29 13:08:29 +09:00
SWC Bot
4a2b1764c4 chore: Publish crates 2022-06-29 04:05:59 +00:00