mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 00:20:04 +01:00
This implements `findSourceMapURL` in react-server-dom-parcel, enabling source maps for replayed server errors on the client. It utilizes a new endpoint in the Parcel dev server that returns the source map for a given bundle/file. The error overlay UI has also been updated to handle these stacks. See https://github.com/parcel-bundler/parcel/pull/10082 Also updated the fixture to the latest Parcel canary. A few APIs have changed. We do have a higher level library wrapper now (`@parcel/rsc` added in https://github.com/parcel-bundler/parcel/pull/10074) but I left the fixture using the lower level APIs directly here since it is easier to see how react-server-dom-parcel is used.
37 lines
918 B
JSON
37 lines
918 B
JSON
{
|
|
"name": "flight-parcel",
|
|
"private": true,
|
|
"source": "src/server.tsx",
|
|
"server": "dist/server.js",
|
|
"targets": {
|
|
"server": {
|
|
"context": "react-server",
|
|
"includeNodeModules": {
|
|
"express": false
|
|
}
|
|
}
|
|
},
|
|
"scripts": {
|
|
"predev": "cp -r ../../build/oss-experimental/* ./node_modules/",
|
|
"prebuild": "cp -r ../../build/oss-experimental/* ./node_modules/",
|
|
"dev": "parcel",
|
|
"build": "parcel build",
|
|
"start": "node dist/server.js"
|
|
},
|
|
"dependencies": {
|
|
"@types/parcel-env": "^0.0.6",
|
|
"@types/express": "*",
|
|
"@types/node": "^22.10.1",
|
|
"@types/react": "^19",
|
|
"@types/react-dom": "^19",
|
|
"concurrently": "^7.3.0",
|
|
"express": "^4.18.2",
|
|
"parcel": "canary",
|
|
"process": "^0.11.10",
|
|
"react": "experimental",
|
|
"react-dom": "experimental",
|
|
"react-server-dom-parcel": "experimental",
|
|
"rsc-html-stream": "^0.0.4"
|
|
}
|
|
}
|