vite-plugins
vite-plugins copied to clipboard
feat: source-map using MagicString
Fixes misalignment of debugger
statements etc. when using this plugin, which forced us back to Webpack.
Barely tested due to:
- Bug introduced in https://github.com/originjs/vite-plugins/pull/26#issuecomment-1604608272 (only tested briefly with other hacks)
- Not using esbuild (entirely untested)
We'll probably migrate to another package which has a proper JS parser (instead of hacky regex), so I'm not sure how much time I'll invest into improving this PR.