preactjs / preset-vite

Preset for using Preact with the vite bundler
https://npm.im/@preact/preset-vite
MIT License
260 stars 26 forks source link

Feature: Add `compat` option to disable `preact/compat` aliases #78

Closed rschristian closed 1 year ago

rschristian commented 1 year ago

Can be enabled by default, but would be nice to allow users to have a bit more control without having to splice the plugins returned by the preset.

I saw that Astro ran into this as well so I think it would be a reasonable addition.

matthewp commented 1 year ago

Thanks @rschristian, I was going to open an issue as well. Having a compat: false or noCompat: true or whatever else would be nice.