Skip to content

Commit

Permalink
fix(hmr): update worker import transform for vite 5
Browse files Browse the repository at this point in the history
  • Loading branch information
ascott18 committed Jan 9, 2024
1 parent eed063e commit 010e034
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coalesce-vue/src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ export function createAspNetCoreHmrPlugin({
// * new Worker("https://
// where the URL is the vite server
new RegExp(
`(new\\s+(?:Shared)?Worker\\s*\\(\\s*(?:new\\s+URL\\s*\\(\\s*)?)(["'])https?://[^:]+:${port}${escapeRegex(
`(new\\s+(?:Shared)?Worker\\s*\\(\\s*(?:new\\s+URL\\s*\\(\\s*)?)(?:''\\s*\\+\\s*)?(["'])https?://[^:]+:${port}${escapeRegex(
base
)}`,
"g"
Expand Down

0 comments on commit 010e034

Please sign in to comment.