eab61f3c65
Server Rendering: * This adds an additional ContentSource to next-dev which takes care of handling the `pages` directory. * The content source creates a ServerRenderedAsset from each file in the `src/pages` or `pages` directory and a AssetGraphContentSource for that. * The ServerRenderedAsset will reference an underlying asset for the node.js context which will be passed to the node executable for rendering. It uses a WrapperAsset to add additional communication logic. Client Transition: * When annotating `import`s with `transition: "next-client"` the NextClientTransition is used * This transition changes the environment to browser * It wraps the referenced asset with a next-hyrdation wrapper asset * It leaves a little module in the previous context which exports a list of URLs for chunks needed. * The NextClientTransition takes a client_chunking_context as argument which specifies how the client code is chunked.
25 lines
650 B
TOML
25 lines
650 B
TOML
[package]
|
|
name = "next-core"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[lib]
|
|
bench = false
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
anyhow = "1.0.47"
|
|
futures = "0.3.21"
|
|
json = "0.12.4"
|
|
mime = "0.3.16"
|
|
serde = "1.0.136"
|
|
tokio = { version = "1.11.0", features = ["full"] }
|
|
turbo-tasks = { path = "../turbo-tasks" }
|
|
turbo-tasks-fs = { path = "../turbo-tasks-fs" }
|
|
turbopack = { path = "../turbopack" }
|
|
turbopack-core = { path = "../turbopack-core" }
|
|
turbopack-dev-server = { path = "../turbopack-dev-server" }
|
|
|
|
[build-dependencies]
|
|
turbo-tasks-build = { path = "../turbo-tasks-build" }
|