Extend bundler support to Webpack and Vite using Unplugin
illright opened this issue · 3 comments
illright commented
There's a project called Unplugin which acts as an adapter of a Rollup-like plugin API and creates plugins that are supported by most bundlers. Looking at the source code of the Rollup plugin for the generator, it seems like it should be a drop-in replacement, though I haven't tried it, and we'd get support for Webpack, Vite, and even esbuild (though not in watch mode, it seems). Is this something you would be open to?
I'm considering giving it a shot, would like to hear your take on it first.
marijnh commented
This sounds useful. The entry point would have to be a specific new file, I guess? I'd be interested in a PR.