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
When building with sourcemap:"hidden" some sourcemap will not be generated correctly and warning will be thrown:
vite-sourcemap-issue>yarnbuildyarnrunv1.22.10warningpackage.json: Nolicensefield$vue-tsc--noEmit&&vitebuildvitev2.1.5buildingforproduction...✓15modulestransformed.renderingchunks(1)...Sourcemapislikelytobe incorrect: aplugin(vite:import-analysis)wasusedtotransformfiles,butdidn't generate a sourcemap for the transformation. Consult the plugin documentation for help
renderingchunks(2)...Sourcemapislikelytobe incorrect: aplugin(vite:define)wasusedtotransformfiles,butdidn't generate a sourcemap for the transformation. Consult the plugin documentation for help
Sourcemapislikelytobeincorrect: aplugin(vite:define)wasusedtotransformfiles,butdidn't generate a sourcemap for the transformation. Consult the plugin documentation for help
Sourcemapislikelytobeincorrect: aplugin(vite:define)wasusedtotransformfiles,butdidn't generate a sourcemap for the transformation. Consult the plugin documentation for help
Sourcemapislikelytobeincorrect: aplugin(vite:define)wasusedtotransformfiles,butdidn't generate a sourcemap for the transformation. Consult the plugin documentation for help
dist/assets/logo.03d6d6da.png6.69kbdist/index.html0.47kbdist/assets/index.e108508f.css0.34kb/brotli: 0.17kbdist/assets/index.c52965d2.js2.12kb/brotli: 0.92kbdist/assets/index.c52965d2.js.map0.10kbdist/assets/vendor.1d2f5768.js43.27kb/brotli: 15.59kbdist/assets/vendor.1d2f5768.js.map0.10kbDonein7.28s.
The dist/assets/index.c52965d2.js.map is broken because the file only contains
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Provide a description in this issue that describes the bug.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
I don't think we need to throw a warning if rollupOptions is used to configure sourcemaps instead. I think it's already clear how sourcemaps can be configured following the docs.
Describe the bug
When building with
sourcemap:"hidden"
some sourcemap will not be generated correctly and warning will be thrown:The
dist/assets/index.c52965d2.js.map
is broken because the file only containsReproduction
vue-ts
orvue
yarn
vite.config.ts
yarn build
vite-sourcemap-issue.zip
System Info
Output of
npx envinfo --system --npmPackages vite,@vitejs/plugin-vue --binaries --browsers
:Used package manager: yarn
Logs
Before submitting the issue, please make sure you do the following
The text was updated successfully, but these errors were encountered: