vite-plugin-vue icon indicating copy to clipboard operation
vite-plugin-vue copied to clipboard

add watchers to imports within vue files

Open cs-mvo opened this issue 1 year ago • 0 comments

Related plugins

Description

The watcher should rebuild vue files when the file's imports are updated. Without this, the rollup build doesn't rebuild when you update .ts and .scss/sass files that are in your build. This was fixed in vuejs/rollup-plugin-vue

Suggested solution

In plugin-vue/src/index.ts line 291, add this code snippet if (query.src) { this.addWatchFile(filename); }

Alternative

No response

Additional context

Original Issues: https://github.com/vuejs/rollup-plugin-vue/issues/396 Original Fixes: https://github.com/vuejs/rollup-plugin-vue/pull/385

Validations

cs-mvo avatar Apr 24 '24 00:04 cs-mvo