owlsdepartment / vite-plugin-babel

Runs babel during dev serve in Vite
MIT License
53 stars 14 forks source link

feat: allow filter to have JavaScript specific regex features in development #17

Closed blikblum closed 11 months ago

blikblum commented 1 year ago

Fix #12

This PR makes filter in development (esbuild) behaves the same when building (rollup)

It tests the JavaScript filter directly instead of passing to esbuild.

Esbuild uses Go Regex which is pretty limited compared to JS engine: https://github.com/evanw/esbuild/issues/1634#issuecomment-927204088

XantreDev commented 1 year ago

I think its a good idea. I've had issue with complex filtering options, babel runned but changed did not applied

blikblum commented 11 months ago

Closed in favor of #23