Jervis2049 / vite-plugin-crx-mv3

Build a Chrome Extension with Vite⚡
201 stars 30 forks source link

fix: preserve original source maps #37

Closed nhobi closed 7 months ago

nhobi commented 7 months ago

This change gets source maps working.

Because the content script code isn't getting transformed beyond removing comments, we can preserve the original source maps by returning null according to the rollup docs here.

https://rollupjs.org/plugin-development/#source-code-transformations

This should also address #35 — not seeing this error anymore after implementing this change.

Jervis2049 commented 7 months ago

thank you