vite-plugins icon indicating copy to clipboard operation
vite-plugins copied to clipboard

feat: source-map using MagicString

Open JannikGM opened this issue 1 year ago • 0 comments

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.

JannikGM avatar Jun 23 '23 17:06 JannikGM