Add a comment so I don't forget why the watcher plugin was needed
This commit is contained in:
parent
a078b41b54
commit
3a3765c9ec
1 changed files with 7 additions and 1 deletions
|
|
@ -23,6 +23,12 @@ function fileMarkerPlugin() {
|
|||
};
|
||||
};
|
||||
|
||||
/*
|
||||
The intent of this plugin is to make so that Rollup watches files
|
||||
that are not in the module graph (i.e. not imported in a JS file),
|
||||
allowing for rebuilds when the module's manifest changes, or when
|
||||
handlebars is updated.
|
||||
*/
|
||||
function watcher(...globs) {
|
||||
return {
|
||||
buildStart() {
|
||||
|
|
@ -44,7 +50,7 @@ export default defineConfig(({ mode }) => {
|
|||
if (!isProd) {
|
||||
plugins.push(
|
||||
watcher(
|
||||
`./public/module.json`,
|
||||
`./public`,
|
||||
),
|
||||
fileMarkerPlugin(),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue