Skip to content

Commit

Permalink
chore: install source-map-support (#357)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDeBoey authored Aug 1, 2023
1 parent 14c6c16 commit 839a39d
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
20 changes: 20 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
"remix-auth": "^3.5.0",
"remix-auth-form": "^1.3.0",
"remix-utils": "^6.6.0",
"source-map-support": "^0.5.21",
"spin-delay": "^1.2.0",
"tailwind-merge": "^1.13.2",
"tailwindcss": "^3.3.2",
Expand Down Expand Up @@ -117,6 +118,7 @@
"@types/qrcode": "^1.5.1",
"@types/react": "^18.2.14",
"@types/react-dom": "^18.2.6",
"@types/source-map-support": "^0.5.6",
"@types/testing-library__jest-dom": "^5.14.7",
"@vitejs/plugin-react": "^4.0.3",
"@vitest/coverage-v8": "^0.33.0",
Expand Down
11 changes: 10 additions & 1 deletion server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,22 @@ import {
createRequestHandler as _createRequestHandler,
} from '@remix-run/express'
import { wrapExpressCreateRequestHandler } from '@sentry/remix'
import { type ServerBuild, broadcastDevReady } from '@remix-run/node'
import {
type ServerBuild,
broadcastDevReady,
installGlobals
} from '@remix-run/node'
import getPort, { portNumbers } from 'get-port'
import chalk from 'chalk'
import sourceMapSupport from 'source-map-support'

// @ts-ignore - this file may not exist if you haven't built yet, but it will
// definitely exist by the time the dev or prod server actually runs.
import * as remixBuild from '../build/index.js'

sourceMapSupport.install()
installGlobals()

const MODE = process.env.NODE_ENV

const createRequestHandler = wrapExpressCreateRequestHandler(
Expand Down

0 comments on commit 839a39d

Please sign in to comment.