Skip to content
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.

add watchers to imports within vue files #385

Merged
merged 2 commits into from Oct 22, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/index.ts
Expand Up @@ -143,6 +143,10 @@ export default function PluginVue(userOptions: Partial<Options> = {}): Plugin {

const descriptor = getDescriptor(query.filename)
const hasScoped = descriptor.styles.some((s) => s.scoped)
if (query.src) {
this.addWatchFile(query.filename);
}

if (query.type === 'template') {
debug(`transform(${id})`)
const block = descriptor.template!
Expand Down