You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If there is a plugin that modifies a file within the watching root directory after a build (e.g. rollup-plugin-copy), Nollup will perform another build operation, ending up in a infinite building loop.
While this would enable support for HMR on static assets, this might create unstable behaviour in the server, as well as polluting the server console with build messages.
I'm not sure if there is an existing workaround, or if there could be a better way to pack assets for both development and production builds.
The text was updated successfully, but these errors were encountered:
Plugins should be avoiding writing to disk during build hooks. Instead they need to be written to either use emitFile() or use a write hook like writeBundle. This unfortunately affects a number of plugins, since they were often written with production builds in mind rather than with a dev server.
Since it's a third party plugin, you can add an exclude rule for watching, as demonstrated here: #101 (comment)
If there is a plugin that modifies a file within the watching root directory after a build (e.g. rollup-plugin-copy), Nollup will perform another build operation, ending up in a infinite building loop.
rollup.config.js:
While this would enable support for HMR on static assets, this might create unstable behaviour in the server, as well as polluting the server console with build messages.
I'm not sure if there is an existing workaround, or if there could be a better way to pack assets for both development and production builds.
The text was updated successfully, but these errors were encountered: