Skip to content

Commit

Permalink
fix: expect msg (#456)
Browse files Browse the repository at this point in the history
  • Loading branch information
edison1105 committed Mar 8, 2024
1 parent 5e30481 commit 11e5598
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/rolldown_plugin_vite_scanner/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ static MULTILINE_COMMENT_REGEX: Lazy<Regex> = Lazy::new(|| {
Regex::new(r"\/\*[^*]*\*+(?:[^/*][^*]*\*+)*\/").expect("Init MULTILINE_COMMENT_REGEX failed")
});
static SINGLE_COMMENT_REGEX: Lazy<Regex> =
Lazy::new(|| Regex::new(r"\/\/.*").expect("Init MULTILINE_COMMENT_REGEX failed"));
Lazy::new(|| Regex::new(r"\/\/.*").expect("Init SINGLE_COMMENT_REGEX failed"));
// A simple regex to detect import sources. This is only used on
// <script lang="ts"> blocks in vue (setup only) or svelte files, since
// seemingly unused imports are dropped by bundler when transpiling TS which
Expand Down

0 comments on commit 11e5598

Please sign in to comment.