You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Vite currently supports CSS sourcemap only on dev, not on build. It also supports JS sourcemap on both environments. When this plugin is installed in a Vite codebase, the build process is unable generate the CSS sourcemap. This issue also causes the JS sourcemap from being generated fully.
Error
"Sourcemap is likely to be incorrect: a plugin (inline-css-modules) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help"
Versions:
vite 3.0.0
vite-plugin-inline-css-modules 0.0.6
Steps to reproduce:
Start with a fresh vite create vite@latest app --template react-ts
Make sure build.sourcemap is set to true in vite.config.js
npm run build
Notice the built files in dist has a working JS sourcemap
npm i vite-plugin-inline-css-modules
import { inlineCssModules } from vite-plugin-inline-css-modulesand call it in theplugins[]invite.config.js`
npm run build
Notice the built files in dist has a broken JS sourcemap (with much lower file size compared to previous)
The text was updated successfully, but these errors were encountered:
hey @kp-entrust ! Can you try with vite-plugin-inline-css-modules@0.0.7? I disabled sourcemap generation and it seemed to get rid of the warnings and sourcemaps still seem to be working as expected.
Description
Vite currently supports CSS sourcemap only on dev, not on build. It also supports JS sourcemap on both environments. When this plugin is installed in a Vite codebase, the build process is unable generate the CSS sourcemap. This issue also causes the JS sourcemap from being generated fully.
Error
"Sourcemap is likely to be incorrect: a plugin (inline-css-modules) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help"
Versions:
vite 3.0.0
vite-plugin-inline-css-modules 0.0.6
Steps to reproduce:
vite create vite@latest app --template react-ts
build.sourcemap
is set totrue
invite.config.js
npm run build
dist
has a working JS sourcemapnpm i vite-plugin-inline-css-modules
import { inlineCssModules } from
vite-plugin-inline-css-modulesand call it in the
plugins[]in
vite.config.js`npm run build
dist
has a broken JS sourcemap (with much lower file size compared to previous)The text was updated successfully, but these errors were encountered: