Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ahabhgk committed Sep 6, 2024
1 parent f75fe41 commit c6f59ec
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions crates/rspack_core/src/normal_module_factory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -700,11 +700,12 @@ impl NormalModuleFactory {
javascript_options,
options,
|javascript_options, options| match (javascript_options, options) {
(ParserOptions::Javascript(a), ParserOptions::JavascriptAuto(b))
| (ParserOptions::Javascript(a), ParserOptions::JavascriptDynamic(b))
| (ParserOptions::Javascript(a), ParserOptions::JavascriptEsm(b)) => {
ParserOptions::Javascript(a.merge_from(b))
}
(
ParserOptions::Javascript(a),
ParserOptions::JavascriptAuto(b)
| ParserOptions::JavascriptDynamic(b)
| ParserOptions::JavascriptEsm(b),
) => ParserOptions::Javascript(a.merge_from(b)),
_ => unreachable!(),
},
)
Expand All @@ -729,12 +730,12 @@ impl NormalModuleFactory {
(ParserOptions::CssModule(a), ParserOptions::CssModule(b)) => {
ParserOptions::CssModule(a.merge_from(b))
}
(ParserOptions::Javascript(a), ParserOptions::Javascript(b))
| (ParserOptions::Javascript(a), ParserOptions::JavascriptAuto(b))
| (ParserOptions::Javascript(a), ParserOptions::JavascriptDynamic(b))
| (ParserOptions::Javascript(a), ParserOptions::JavascriptEsm(b)) => {
ParserOptions::Javascript(a.merge_from(b))
}
(
ParserOptions::Javascript(a),
ParserOptions::JavascriptAuto(b)
| ParserOptions::JavascriptDynamic(b)
| ParserOptions::JavascriptEsm(b),
) => ParserOptions::Javascript(a.merge_from(b)),
(global, _) => global,
},
);
Expand Down

0 comments on commit c6f59ec

Please sign in to comment.