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

chore: install source-map-support #357

Merged
merged 1 commit into from
Aug 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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