Skip to content

Commit 82e14a8

Browse files
committed
perf: try to create native regex first
1 parent 6770a77 commit 82e14a8

File tree

5 files changed

+152
-335
lines changed

5 files changed

+152
-335
lines changed

crates/rspack/tests/snapshots/defaults__default_options.snap

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
source: crates/rspack/tests/defaults.rs
3-
assertion_line: 16
43
expression: options
54
---
65
CompilerOptions {
@@ -1404,6 +1403,13 @@ CompilerOptions {
14041403
),
14051404
wrapped_context_reg_exp: Some(
14061405
RspackRegex {
1406+
regex: Native(
1407+
RspackNativeRegex(
1408+
Regex(
1409+
".*",
1410+
),
1411+
),
1412+
),
14071413
flags: "",
14081414
source: ".*",
14091415
},

crates/rspack_regex/src/algo.rs

Lines changed: 0 additions & 170 deletions
This file was deleted.

0 commit comments

Comments
 (0)