8000 fix: support external import URLs for monorepos · unplugin/unplugin-vue@b990d51 · GitHub
[go: up one dir, main page]

Skip to content

Commit b990d51

Browse files
committed
fix: support external import URLs for monorepos
ref vitejs/vite-plugin-vue@cdd4922
1 parent 1cf7eee commit b990d51

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/core/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,10 @@ export const plugin: UnpluginInstance<Options | undefined, false> =
430430
getTempSrcDescriptor(filename, query)
431431
: getDescriptor(filename, options.value)!
432432

433+
if (query.src) {
434+
this.addWatchFile(filename)
435+
}
436+
433437
if (query.type === 'template') {
434438
return transformTemplateAsModule(
435439
code,

0 commit comments

Comments
 (0)
0