diff --git a/.changeset/little-turtles-applaud.md b/.changeset/little-turtles-applaud.md new file mode 100644 index 00000000000..66dfe471250 --- /dev/null +++ b/.changeset/little-turtles-applaud.md @@ -0,0 +1,5 @@ +--- +"@remix-run/dev": patch +--- + +Vite: Fix support for `build.sourcemap` option in Vite config diff --git a/packages/remix-dev/vite/build.ts b/packages/remix-dev/vite/build.ts index 6000c8a8b3b..682f3cfefac 100644 --- a/packages/remix-dev/vite/build.ts +++ b/packages/remix-dev/vite/build.ts @@ -237,8 +237,8 @@ export async function build( logLevel, minify, mode, - sourcemapClient = false, - sourcemapServer = false, + sourcemapClient, + sourcemapServer, }: ViteBuildOptions ) { // Ensure Vite's ESM build is preloaded at the start of the process