-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
HMR (unstable_dev in 1.16.0) loses TypeScript sourcemap support #6392
Comments
Same here. No sourcemaps. I'm on 1.17.0 |
Can confirm it occurs in 1.18.0 as well under |
Tried today on 1.18.1, with a barebones create-remix app, and sadly same issue. For developer efficiency, TS sourcemaps are a critical browser feature for debuggability of an app, so I can't move to remix DEV mode until this is sorted. |
🤖 Hello there, We just published version Thanks! |
Tested the nightly with my example - looks great @pcattori, thanks ! |
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
I'm still seeing broken sourcemaps in /** @type {import('@remix-run/dev').AppConfig} */
export default {
ignoredRouteFiles: ['**/.*'],
server: './server.ts',
serverBuildPath: 'functions/[[path]].js',
serverConditions: ['workerd', 'worker', 'browser'],
serverDependenciesToBundle: 'all',
serverMainFields: ['browser', 'module', 'main'],
serverMinify: true,
serverModuleFormat: 'esm',
serverPlatform: 'neutral',
serverNodeBuiltinsPolyfill: {},
future: {
v2_dev: true,
v2_routeConvention: true,
v2_errorBoundary: true,
v2_meta: true,
v2_normalizeFormMethod: true,
v2_headers: true
}
} |
What version of Remix are you using?
1.16.0
Are all your remix dependencies & dev-dependencies using the same version?
Steps to Reproduce
FYI - This was found when trying to see emotion work under Remix HMR/HDR (which it does! 😀) but when trying to debug a related issue, I saw this which makes the investigation harder.
Show the Proper behavior (by default)
npm install
(updates to latest react/remix/emotion) andnpm run dev
Add HMR and show the failing behavior
npm run dev
Expected Behavior
The TypeScript sourcemaps should be respected as they are without HMR on.
Actual Behavior
The TypeScript sourcemaps are not represented properly and only the underlying JS (and more) is shown.
The text was updated successfully, but these errors were encountered: