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 running npm run build with vite's config build.sourcemap set to true, I expect sourcemaps to be in the bundled output. If you look at the bundled output below, none of the files end in .map.js
Actual Behavior
The output is being bundled correctly, but no sourcemaps are being generated.
> build
> remix vite:build
vite v5.1.4 building for production...
✓ 80 modules transformed.
build/client/.vite/manifest.json 0.90 kB │ gzip: 0.26 kB
build/client/assets/_index-D_UUquDl.js 0.76 kB │ gzip: 0.39 kB
build/client/assets/root-B_va2Ysy.js 1.44 kB │ gzip: 0.84 kB
build/client/assets/jsx-runtime-BlSqMCxk.js 8.09 kB │ gzip: 3.04 kB
build/client/assets/entry.client-DxOYqYt_.js 14.18 kB │ gzip: 4.94 kB
build/client/assets/components-Bjtzq-Kj.js 212.63 kB │ gzip: 68.80 kB
✓ built in 447ms
vite v5.1.4 building SSR bundle for production...
✓ 5 modules transformed.
build/server/.vite/manifest.json 0.13 kB
build/server/index.js 6.89 kB
✓ built in 14ms
The text was updated successfully, but these errors were encountered:
We just published version 2.8.1-pre.0 which involves this issue. If you'd like to take it for a test run please try it out and let us know what you think!
Reproduction
I'm able to reproduce this on the latest create-remix template.
npx create-remix@latest --template remix-run/remix/templates/vite
vite.config.ts
to set build.sourcemap to true:npm run build
build/client/assets
. None of them end in.js.map
, which would be expected if sourcemaps are being generated.System Info
Used Package Manager
npm
Expected Behavior
When running
npm run build
with vite's configbuild.sourcemap
set to true, I expect sourcemaps to be in the bundled output. If you look at the bundled output below, none of the files end in.map.js
Actual Behavior
The output is being bundled correctly, but no sourcemaps are being generated.
The text was updated successfully, but these errors were encountered: