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

vite build --sourcemap

Open jmgirven opened this issue 3 years ago • 3 comments

vite version 2.0.5 vite-plugin-react-svg version 0.2.0

I am trying to generate production source maps when building my vite app using the --sourcemap feature of the vite build command.

vite build --sourcemap

but I am experiencing warnings related to vite-plugin-react-svg:

Sourcemap is likely to be incorrect: a plugin (react-svg) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help

Should this plugin detect the --sourcemap option and output the transform files? Or should react-svg?

jmgirven avatar Mar 08 '21 12:03 jmgirven

@jmgirven have you found a solution?

sheoak avatar May 06 '21 16:05 sheoak

I haven't, no.

jmgirven avatar May 07 '21 12:05 jmgirven

I am also encountering this. Can we suppress this somehow?

jonluca avatar Nov 15 '21 21:11 jonluca