hyperbrew / vite-cep-plugin

A Vite plugin to build Adobe CEP Extension Panels
MIT License
16 stars 16 forks source link

fix: 'use strict' newline causes mismatching sourcemap #24

Closed bjornhenriksson closed 3 months ago

bjornhenriksson commented 3 months ago

The new line created by the ´use strict´ replacement is making the minified code throw errors with line trace pointing to an offset of one 11:20 instead of 10:20, breaking the sourcemap (sourcemap is generated by default before this plugin changes the minified code).

justintaylor-dev commented 3 months ago

Great find, thanks!