Skip to content

Commit

Permalink
Add RSC-based static site generator (#10057)
Browse files Browse the repository at this point in the history
  • Loading branch information
devongovett authored Dec 24, 2024
1 parent 8a15d0c commit 393f497
Show file tree
Hide file tree
Showing 36 changed files with 1,166 additions and 246 deletions.
4 changes: 1 addition & 3 deletions crates/parcel-resolver/src/package_json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -584,9 +584,7 @@ impl PackageJson {
for (key, value) in target {
let matches = match key {
ExportsKey::Condition(key) => {
*key == ExportsCondition::SOURCE
|| *key == ExportsCondition::DEFAULT
|| conditions.contains(*key)
*key == ExportsCondition::DEFAULT || conditions.contains(*key)
}
ExportsKey::CustomCondition(key) => custom_conditions.iter().any(|k| k == key),
_ => false,
Expand Down
1 change: 1 addition & 0 deletions packages/configs/default/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
},
"namers": ["@parcel/namer-default"],
"runtimes": [
"@parcel/runtime-rsc",
"@parcel/runtime-js",
"@parcel/runtime-browser-hmr",
"@parcel/runtime-service-worker"
Expand Down
1 change: 1 addition & 0 deletions packages/configs/default/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"@parcel/resolver-default": "2.13.3",
"@parcel/runtime-browser-hmr": "2.13.3",
"@parcel/runtime-js": "2.13.3",
"@parcel/runtime-rsc": "2.13.3",
"@parcel/runtime-service-worker": "2.13.3",
"@parcel/transformer-babel": "2.13.3",
"@parcel/transformer-css": "2.13.3",
Expand Down
7 changes: 7 additions & 0 deletions packages/configs/react-static/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "@parcel/config-default",
"namers": ["@parcel/namer-static", "..."],
"packagers": {
"*.html": "@parcel/packager-react-static"
}
}
15 changes: 15 additions & 0 deletions packages/configs/react-static/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "@parcel/config-react-static",
"version": "2.13.3",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/parcel-bundler/parcel.git"
},
"main": "index.json",
"dependencies": {
"@parcel/config-default": "2.13.3",
"@parcel/namer-static": "2.13.3",
"@parcel/packager-react-static": "2.13.3"
}
}
Loading

0 comments on commit 393f497

Please sign in to comment.