power-assert-js/power-assert

[feature request] vite support

Opened this issue · 3 comments

vite has gained a lot of ground in recent years and is now the build tool of choice for many new projects. It'd be great to support power-assert transformations with vite.

My reading has left me confused about whether vite uses babel sometimes or optionally or with certain plugins. I opened a question about this on the vite discord but haven't heard back.

I also stumbled across what appears to be code for power-assert plugins for esbuild and rollup (tools which vite builds on)… but twada has not published them yet. https://github.com/twada/power-assert-monorepo/tree/main/packages

@keturn Thank you for your feature request. Okay I'll publish rollup4 and vitest integration from my experimental new repository https://github.com/twada/power-assert-monorepo/tree/main/packages

@keturn FTI: just released rollup-plugin-power-assert 0.1.0
https://www.npmjs.com/package/rollup-plugin-power-assert