Skip to content

Commit

Permalink
feat(remix-serve): install source-map-support (#7039)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDeBoey authored Aug 3, 2023
1 parent 84d1215 commit 594dff7
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/lucky-kangaroos-develop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@remix-run/serve": patch
---

Install `source-map-support`
6 changes: 5 additions & 1 deletion packages/remix-serve/cli.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import "./env";
import path from "path";
import os from "os";
import { broadcastDevReady } from "@remix-run/node";
import { broadcastDevReady, installGlobals } from "@remix-run/node";
import sourceMapSupport from "source-map-support";

import { createApp } from "./index";

sourceMapSupport.install();
installGlobals();

let port = process.env.PORT ? Number(process.env.PORT) : 3000;
if (Number.isNaN(port)) port = 3000;

Expand Down
6 changes: 4 additions & 2 deletions packages/remix-serve/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@
"@remix-run/node": "1.19.2-pre.1",
"compression": "^1.7.4",
"express": "^4.17.1",
"morgan": "^1.10.0"
"morgan": "^1.10.0",
"source-map-support": "^0.5.21"
},
"devDependencies": {
"@types/compression": "^1.7.0",
"@types/express": "^4.17.9",
"@types/morgan": "^1.9.2"
"@types/morgan": "^1.9.2",
"@types/source-map-support": "^0.5.6"
},
"engines": {
"node": ">=14.0.0"
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3406,10 +3406,10 @@
resolved "https://registry.npmjs.org/@types/sizzle/-/sizzle-2.3.3.tgz"
integrity sha512-JYM8x9EGF163bEyhdJBpR2QX1R5naCJHC8ucJylJ3w9/CVBaskdQ8WqBf8MmQrd1kRvp/a4TS8HJ+bxzR7ZJYQ==

"@types/source-map-support@^0.5.4":
version "0.5.4"
resolved "https://registry.npmjs.org/@types/source-map-support/-/source-map-support-0.5.4.tgz"
integrity sha512-9zGujX1sOPg32XLyfgEB/0G9ZnrjthL/Iv1ZfuAjj8LEilHZEpQSQs1scpRXPhHzGYgWiLz9ldF1cI8JhL+yMw==
"@types/source-map-support@^0.5.4", "@types/source-map-support@^0.5.6":
version "0.5.6"
resolved "https://registry.npmjs.org/@types/source-map-support/-/source-map-support-0.5.6.tgz#aa4a8c98ec73a1f1f30a813573a9b2154a6eb39a"
integrity sha512-b2nJ9YyXmkhGaa2b8VLM0kJ04xxwNyijcq12/kDoomCt43qbHBeK2SLNJ9iJmETaAj+bKUT05PQUu3Q66GvLhQ==
dependencies:
source-map "^0.6.0"

Expand Down

0 comments on commit 594dff7

Please sign in to comment.