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
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Commitcd41410

Browse files
neryamsznck
andauthored
feat: add watchers to imports within vue files (#385)
the watcher should rebuild vue files when the file's imports are updatedCo-authored-by: Rahul Kadyan <hi@znck.me>
1 parent6eb9f4c commitcd41410

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,10 @@ export default function PluginVue(userOptions: Partial<Options> = {}): Plugin {
143143

144144
constdescriptor=getDescriptor(query.filename)
145145
consthasScoped=descriptor.styles.some((s)=>s.scoped)
146+
if(query.src){
147+
this.addWatchFile(query.filename);
148+
}
149+
146150
if(query.type==='template'){
147151
debug(`transform(${id})`)
148152
constblock=descriptor.template!

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp