Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6ccadd3

Browse files
committed
fix: resolve sourcemap conflicts in build watch mode with cached modules
refvitejs/vite-plugin-vue@906cebb
1 parent2abcc7c commit6ccadd3

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

‎src/core/index.ts‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,8 @@ export const plugin: UnpluginInstance<Options | undefined, false> =
238238
version,
239239
}
240240

241+
lettransformCachedModule=false
242+
241243
return{
242244
name:'unplugin-vue',
243245

@@ -340,6 +342,18 @@ export const plugin: UnpluginInstance<Options | undefined, false> =
340342
}
341343
_warn(...args)
342344
}
345+
346+
transformCachedModule=
347+
config.command==='build'&&
348+
options.value.sourceMap&&
349+
config.build.watch!=null
350+
},
351+
352+
shouldTransformCachedModule({ id}){
353+
if(transformCachedModule&&parseVueRequest(id).query.vue){
354+
returntrue
355+
}
356+
returnfalse
343357
},
344358

345359
configureServer(server){

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp