Skip to content
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

In Vite build.sourcemap = true doesn't generate sourcemaps #9005

Closed
ivosabev opened this issue Mar 7, 2024 · 3 comments
Closed

In Vite build.sourcemap = true doesn't generate sourcemaps #9005

ivosabev opened this issue Mar 7, 2024 · 3 comments

Comments

@ivosabev
Copy link

ivosabev commented Mar 7, 2024

Reproduction

Fresh project created with npx create-remix@latest --template remix-run/remix/templates/vite-express

Then add build.sourcemap to the vite.config.js

import { vitePlugin as remix } from "@remix-run/dev";
import { defineConfig } from "vite";
import tsconfigPaths from "vite-tsconfig-paths";

export default defineConfig({
  build: {
    sourcemap: true,
  },
  plugins: [remix(), tsconfigPaths()],
});

Run the build and nothing is generated.

NODE_ENV=production npm run build

> build
> remix vite:build

vite v5.1.5 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-CXCOh6Pt.js            1.44 kB │ gzip:  0.83 kB
build/client/assets/jsx-runtime-BlSqMCxk.js     8.09 kB │ gzip:  3.04 kB
build/client/assets/entry.client-BJ12z_Rq.js   14.04 kB │ gzip:  5.00 kB
build/client/assets/components-t0vHlsCC.js    212.81 kB │ gzip: 68.87 kB
✓ built in 488ms
vite v5.1.5 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 13ms
@pchmn
Copy link

pchmn commented Mar 7, 2024

I think PR #8965 fixes this

@ivosabev
Copy link
Author

ivosabev commented Mar 7, 2024

Thanks for the quick reply, works with 2.8.1-pre.0

@brophdawg11
Copy link
Contributor

Closing this as a dup of #8935, fixed by #8965

@brophdawg11 brophdawg11 closed this as not planned Won't fix, can't repro, duplicate, stale Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants