-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
devSourcemap: true
not generating sourcemaps for preview mode
#11480
Comments
css sourcemap for build is not supported yet. Closing as a duplicate of #2830 |
@sapphi-red Okay that's cool, but not sure how can a basic and industry standard feature not be supported? There must be some technical limitations? I can try implement it.. is a PR welcomed? |
PR is welcome! This is the related part. vite/packages/vite/src/node/plugins/css.ts Lines 354 to 714 in 13ac37d
|
Describe the bug
When running the command
vite preview
it should be treated as "dev" and hence should produce sourcemaps for easy debugging. even when NODE_ENV and mode is set to"development"
.Reproduction
https://stackblitz.com/edit/vitejs-vite-2h4hxn?file=vite.config.ts&terminal=preview
Steps to reproduce
System Info
System: OS: Linux 5.0 undefined CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz Memory: 0 Bytes / 0 Bytes Shell: 1.0 - /bin/jsh Binaries: Node: 16.14.2 - /usr/local/bin/node Yarn: 1.22.19 - /usr/local/bin/yarn npm: 7.17.0 - /usr/local/bin/npm npmPackages: vite: ^4.0.0 => 4.0.3
Used Package Manager
npm
Logs
vite v4.0.3 building for development... ✓ 6 modules transformed. dist/index.html 0.45 kB dist/assets/javascript-8dac5379.svg 1.00 kB dist/assets/index-1bb5262e.css 1.70 kB dist/assets/index-de04364a.js 2.27 kB │ map: 1.61 kB ➜ Local: http://localhost:4173/ ➜ Network: use --host to expose
Validations
The text was updated successfully, but these errors were encountered: