Skip to content

Commit

Permalink
fix(plugin_resolve): duplicated querystring on external (#2057)
Browse files Browse the repository at this point in the history
* fix(plugin_resolve): duplicated querystring on external

* chore: add changeset

---------

Co-authored-by: brightwu <[email protected]>
  • Loading branch information
HelloWorld017 and wre232114 authored Jan 11, 2025
1 parent b34e60f commit 2423ee6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/tiny-berries-think.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@farmfe/core": patch
---

Fix query strings in external imports are duplicated
2 changes: 1 addition & 1 deletion crates/plugin_resolve/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ impl Plugin for FarmPluginResolve {
// check external first, if the source is set as external, return it immediately
if external_config.is_external(source) {
return Ok(Some(PluginResolveHookResult {
resolved_path: param.source.clone(),
resolved_path: String::from(source),
external: true,
side_effects: false,
query,
Expand Down

0 comments on commit 2423ee6

Please sign in to comment.