Skip to content

Commit

Permalink
chore: native source-maps with --enable-source-maps (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcansh authored Oct 16, 2023
1 parent 0b3e1cd commit c712966
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 19 deletions.
7 changes: 3 additions & 4 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"type": "module",
"scripts": {
"build": "remix build",
"dev": "remix dev --manual -c \"node ./server.js\"",
"start": "node ./server.js",
"dev": "remix dev --manual -c \"node --enable-source-maps ./server.js\"",
"start": "node --enable-source-maps ./server.js",
"typecheck": "tsc"
},
"dependencies": {
Expand All @@ -20,8 +20,7 @@
"fastify": "^4.24.2",
"isbot": "^3.7.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"source-map-support": "^0.5.21"
"react-dom": "^18.2.0"
},
"devDependencies": {
"@remix-run/dev": "^2.0.1",
Expand Down
2 changes: 0 additions & 2 deletions example/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ import {
getEarlyHintLinks,
} from "@mcansh/remix-fastify";
import { broadcastDevReady, installGlobals } from "@remix-run/node";
import sourceMapSupport from "source-map-support";
import { fastifyEarlyHints } from "@fastify/early-hints";

sourceMapSupport.install();
installGlobals();

let BUILD_PATH = "./build/index.js";
Expand Down
7 changes: 3 additions & 4 deletions playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"type": "module",
"scripts": {
"build": "remix build",
"dev": "remix dev --manual -c \"node ./server.js\"",
"start": "node ./server.js",
"dev": "remix dev --manual -c \"node --enable-source-maps ./server.js\"",
"start": "node --enable-source-maps ./server.js",
"lint": "eslint --cache --ignore-path .gitignore --fix .",
"format": "prettier --write --ignore-path .gitignore .",
"typecheck": "tsc",
Expand All @@ -23,8 +23,7 @@
"fastify": "^4.24.2",
"isbot": "^3.7.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"source-map-support": "^0.5.21"
"react-dom": "^18.2.0"
},
"devDependencies": {
"@remix-run/dev": "^2.0.1",
Expand Down
3 changes: 0 additions & 3 deletions playground/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@ import {
getEarlyHintLinks,
} from "@mcansh/remix-fastify";
import { broadcastDevReady } from "@remix-run/node";
import sourceMapSupport from "source-map-support";
import { fastifyEarlyHints } from "@fastify/early-hints";

sourceMapSupport.install();

let BUILD_PATH = "./build/index.js";
let VERSION_PATH = "./build/version.txt";

Expand Down
6 changes: 0 additions & 6 deletions pnpm-lock.yaml

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

0 comments on commit c712966

Please sign in to comment.