Skip to content

Commit

Permalink
document handling query params for theme pack plugin local dev (#1228)
Browse files Browse the repository at this point in the history
  • Loading branch information
thescientist13 committed May 31, 2024
1 parent 09a36cd commit bb4fdc5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion www/pages/guides/theme-packs.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,11 @@ class MyThemePackDevelopmentResource extends ResourceInterface {
async resolve(url) {
const { userWorkspace } = this.compilation.context;
const filePath = this.getBareUrlPath(url).split(`/node_modules/${packageName}/dist/`)[1];
const params = searchParams.size > 0
? `?${searchParams.toString()}`
: '';
return new URL(`./${filePath}`, userWorkspace, filePath);
return new URL(`./${filePath}${params}`, userWorkspace, filePath);
}
}
Expand Down

0 comments on commit bb4fdc5

Please sign in to comment.