Skip to content

Commit

Permalink
Bump source-map for Node 18 & fix /200.html being prerendered (#1811
Browse files Browse the repository at this point in the history
)

* fix: Bump `source-map` to fix poor env detection

* fix: Shouldn't be prerendering `/200.html`
  • Loading branch information
rschristian authored Dec 11, 2023
1 parent da466ee commit 5b9d5bb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"react-refresh": "0.11.0",
"sade": "^1.8.1",
"size-plugin": "^2.0.2",
"source-map": "^0.7.2",
"source-map": "^0.7.4",
"source-map-loader": "^1.1.1",
"stack-trace": "0.0.10",
"style-loader": "^3.3.1",
Expand Down
7 changes: 4 additions & 3 deletions packages/cli/src/lib/webpack/render-html-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,10 @@ module.exports = async function renderHTMLPlugin(config, env) {
env,
prerenderData: values,
CLI_DATA: { prerenderData: { url, ...routeData } },
ssr: config.prerender
? await prerender(config, values)
: '',
ssr:
config.prerender && url !== PREACT_FALLBACK_URL
? await prerender(config, values)
: '',
entrypoints,
},
htmlWebpackPlugin: {
Expand Down
7 changes: 6 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10887,11 +10887,16 @@ source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.0, source-map@~0.6.1:
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263"
integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==

source-map@^0.7.2, source-map@^0.7.3, source-map@~0.7.2:
source-map@^0.7.3, source-map@~0.7.2:
version "0.7.3"
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.3.tgz#5302f8169031735226544092e64981f751750383"
integrity sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==

source-map@^0.7.4:
version "0.7.4"
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.4.tgz#a9bbe705c9d8846f4e08ff6765acf0f1b0898656"
integrity sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==

source-map@^0.8.0-beta.0:
version "0.8.0-beta.0"
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.8.0-beta.0.tgz#d4c1bb42c3f7ee925f005927ba10709e0d1d1f11"
Expand Down

0 comments on commit 5b9d5bb

Please sign in to comment.