Commit Graph

5829 Commits

Author SHA1 Message Date
SWC Bot
c92474ee13 chore: Publish crates 2022-09-11 23:40:40 +00:00
Alexander Akait
b531410ea9
fix(css/minifier): Compress alpha (#5825) 2022-09-11 23:37:35 +00:00
SWC Bot
7811ceea3b chore: Publish crates 2022-09-11 13:59:34 +00:00
Donny/강동윤
4f119b2693
perf(css): Optimize memory layout of ast types (#5823) 2022-09-11 13:56:48 +00:00
SWC Bot
fb2c33e132 chore: Publish crates 2022-09-11 09:28:02 +00:00
Donny/강동윤
9e81c2639b
perf(css/minifier): Merge passes and reduce clone (#5822) 2022-09-11 18:24:53 +09:00
SWC Bot
35736a313d chore: Publish crates 2022-09-11 07:19:34 +00:00
Donny/강동윤
4fa5a2778b
perf(css/minifier): Merge more passes into the compressor (#5821) 2022-09-11 16:16:45 +09:00
SWC Bot
70f1be9919 chore: Publish crates 2022-09-11 06:26:58 +00:00
Donny/강동윤
f523502f4c
perf(css/minifier): Merge passes (#5820)
**Description:**

A single visitor is better for performance.
2022-09-11 15:24:02 +09:00
SWC Bot
2b1e73737f chore: Publish crates 2022-09-11 06:21:56 +00:00
Donny/강동윤
cfe575e35a
perf(es/minifier): Make expression simplifier stateless and parallel (#5819) 2022-09-11 06:18:44 +00:00
SWC Bot
5fe032c01a chore: Publish crates 2022-09-11 03:00:57 +00:00
RiESAEX
8adbe1675e
fix(es/parser): Keep comments of the RHS of a binary expression (#5812) 2022-09-11 02:58:06 +00:00
SWC Bot
7f6483a94c chore: Publish crates 2022-09-11 02:07:00 +00:00
OJ Kwon
2819be5aac
feat(swc_core): Export swc_common/sourcemap (#5818) 2022-09-11 02:04:15 +00:00
SWC Bot
4084fc1aeb chore: Publish crates 2022-09-10 17:14:48 +00:00
Donny/강동윤
704ea3d48d
perf(es/minifier): Optimize usage of IndexSet (#5814) 2022-09-10 17:11:41 +00:00
SWC Bot
b2b7b23460 chore: Publish crates 2022-09-10 16:23:17 +00:00
Donny/강동윤
bb427c4267
build(bindings): Use new llvm pass manager (#5816) 2022-09-10 16:20:30 +00:00
SWC Bot
961a9047c0 chore: Publish crates 2022-09-10 15:07:06 +00:00
IWANABETHATGUY
97729e5d2b
feat(es/parser): Improve jsx lexer (#5805) 2022-09-11 00:03:51 +09:00
Donny/강동윤
ac850988af
chore: Publish v1.3.0 (#5813) 2022-09-10 23:05:27 +09:00
SWC Bot
133da8e92b chore: Publish crates 2022-09-10 10:46:37 +00:00
Sukka
9d1629369b
fix(node-swc): Fix the type definition of jsc.paths (#5811) 2022-09-10 10:43:37 +00:00
SWC Bot
0fe3ee682a chore: Publish crates 2022-09-10 10:06:02 +00:00
Donny/강동윤
72a8b608d6
perf(css/parser): Skip whiltespace from lexer (#5810)
**Description:**

Lexer can handle it more efficiently.
2022-09-10 10:01:45 +00:00
SWC Bot
f739976bdd chore: Publish crates 2022-09-10 09:21:51 +00:00
Donny/강동윤
91ed13e098
perf(css/parser): Remove needless branching (#5809) 2022-09-10 18:18:47 +09:00
SWC Bot
53b134f80b chore: Publish crates 2022-09-10 08:35:20 +00:00
Donny/강동윤
96cc888ef2
perf(css/parser): Use ascii operations (#5808)
**Description:**

We don't need Unicode handling in these cases.
2022-09-10 08:32:35 +00:00
SWC Bot
417b1f2a92 chore: Publish crates 2022-09-10 07:23:37 +00:00
Donny/강동윤
7391cc99b1
perf(css/minifier): Use JsWord instead of &str (#5806) 2022-09-10 07:20:51 +00:00
SWC Bot
6cf71285a6 chore: Publish crates 2022-09-10 06:39:04 +00:00
Donny/강동윤
b96eb1ead8
perf(css/codegen): Skip useless operations if not required (#5802)
**Description:**

The column is used only for sourcemap, so we can skip `chars().count()` if we are not generating source maps.
2022-09-10 15:36:15 +09:00
SWC Bot
4c078b0ac3 chore: Publish crates 2022-09-10 06:04:28 +00:00
magic-akari
aa8672e739
fix(es/compat): Fix generator (#5796)
**Description:**

- Merge `temp_vars` into `hoisted_vars`.
- Fix the context of the function call and new call.

**Related issue (if exists):**

 - https://github.com/vercel/next.js/issues/40399
2022-09-10 15:01:43 +09:00
SWC Bot
c8bb70f97e chore: Publish crates 2022-09-10 05:48:09 +00:00
Donny/강동윤
49942ca773
perf(es/codegen): Skip useless operations if not required (#5803)
**Description:**

The column is used only for sourcemap, so we can skip `chars().count()` if we are not generating source maps.
2022-09-10 14:45:23 +09:00
SWC Bot
4859052f4f chore: Publish crates 2022-09-10 04:42:39 +00:00
Donny/강동윤
88e59ffcda
perf(css/minifier): Setup benchmark (#5800)
**Description:**

I created a simple benchmark for the css minifier. It's full benchmark, which also profiles parser and codegen
2022-09-10 13:39:55 +09:00
SWC Bot
a94d9f1fbd chore: Publish crates 2022-09-10 03:54:47 +00:00
Donny/강동윤
2bbc9bd73b
refactor(es/plugin): Fix lints (#5801) 2022-09-10 12:50:54 +09:00
SWC Bot
575940e770 chore: Publish crates 2022-09-09 08:09:53 +00:00
OJ Kwon
6f19f8902f
refactor(swc_core): enable bytechecked flag (#5792)
**Description:**

Another update to enable bytecheck rkyv feature flag.

Our dep tree is quite tangled with implicit enable (plugin -> rkyv). PR tries to detach some of it while trying to preserve existing behavior as much as it can.
2022-09-09 08:05:51 +00:00
SWC Bot
54b108dc51 chore: Publish crates 2022-09-09 05:55:06 +00:00
Donny/강동윤
21fbcb9621
refactor(es/renamer): Rename PARALLEL to MANGLE (#5790)
**Description:**

Actually, performance issue comes from collision, not parallelism. So I renamed the associated constant.
2022-09-09 05:51:45 +00:00
SWC Bot
701fa74631 chore: Publish crates 2022-09-09 05:05:59 +00:00
magic-akari
9c998d4406
fix(es): Use paren_remover pass (#5753)
**Description:**

We now apply the paren_remover pass before applying other transforms.

**Related issue:**
 - Closes #5652 
 - Closes #5752
2022-09-09 05:02:24 +00:00
SWC Bot
0fe604817a chore: Publish crates 2022-09-09 04:14:30 +00:00