samrum / vite-plugin-web-extension

A vite plugin for generating cross browser platform, ES module based web extensions.
MIT License
325 stars 32 forks source link

Rebuild doesn't always fire after saving a file #78

Closed gorbit99 closed 1 year ago

gorbit99 commented 1 year ago

Hey! For some reason, sometimes when I save a file that's part of the extension, it doesn't trigger a build in vite. The only workaround I've found is to then force save another file. I think this happens only for files set as "additionalInputs". For example right now I have a file that's eventually imported from a file that's in that list, and it refuses to build. But if I go one level up, it for some reason works fine. Is this known, or is there a fix for this?

samrum commented 1 year ago

Are you using the watch or dev command? What do you mean by "additionalInputs"? Can you provide an example project?

gorbit99 commented 1 year ago

Ignore, I accidentally found the wrong repository, it's just named the same.