preactjs / preset-vite

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

refactor: Remove `devtoolsInProd` option, default to dev/prod #112

Open rschristian opened 6 months ago

rschristian commented 6 months ago

Breaking change, don't merge before we're ready!

devtoolsInProd feels a bit unnecessary, as we can instead toggle based on dev/prod environment (as can the user). If a user wanted to always enable devtools, no problem, they can pass a constant true into the plugin options like so: preact({ devToolsEnabled: true })