Skip to content

Commit 839a39d

Browse files
chore: install source-map-support (#357)
1 parent 14c6c16 commit 839a39d

File tree

3 files changed

+32
-1
lines changed

3 files changed

+32
-1
lines changed

package-lock.json

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
"remix-auth": "^3.5.0",
8888
"remix-auth-form": "^1.3.0",
8989
"remix-utils": "^6.6.0",
90+
"source-map-support": "^0.5.21",
9091
"spin-delay": "^1.2.0",
9192
"tailwind-merge": "^1.13.2",
9293
"tailwindcss": "^3.3.2",
@@ -117,6 +118,7 @@
117118
"@types/qrcode": "^1.5.1",
118119
"@types/react": "^18.2.14",
119120
"@types/react-dom": "^18.2.6",
121+
"@types/source-map-support": "^0.5.6",
120122
"@types/testing-library__jest-dom": "^5.14.7",
121123
"@vitejs/plugin-react": "^4.0.3",
122124
"@vitest/coverage-v8": "^0.33.0",

server/index.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,22 @@ import {
1313
createRequestHandler as _createRequestHandler,
1414
} from '@remix-run/express'
1515
import { wrapExpressCreateRequestHandler } from '@sentry/remix'
16-
import { type ServerBuild, broadcastDevReady } from '@remix-run/node'
16+
import {
17+
type ServerBuild,
18+
broadcastDevReady,
19+
installGlobals
20+
} from '@remix-run/node'
1721
import getPort, { portNumbers } from 'get-port'
1822
import chalk from 'chalk'
23+
import sourceMapSupport from 'source-map-support'
1924

2025
// @ts-ignore - this file may not exist if you haven't built yet, but it will
2126
// definitely exist by the time the dev or prod server actually runs.
2227
import * as remixBuild from '../build/index.js'
28+
29+
sourceMapSupport.install()
30+
installGlobals()
31+
2332
const MODE = process.env.NODE_ENV
2433

2534
const createRequestHandler = wrapExpressCreateRequestHandler(

0 commit comments

Comments
 (0)