-
Notifications
You must be signed in to change notification settings - Fork 27.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'canary' of github.com:Sam-Phillemon9493/next.js into up…
…date-with-web-worker-example
- Loading branch information
Showing
177 changed files
with
21,431 additions
and
17,788 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
use anyhow::{bail, Result}; | ||
use turbo_tasks::{Completion, Vc}; | ||
use turbopack_core::module::Modules; | ||
|
||
use crate::route::{Endpoint, WrittenEndpoint}; | ||
|
||
#[turbo_tasks::value] | ||
pub struct EmptyEndpoint; | ||
|
||
#[turbo_tasks::value_impl] | ||
impl EmptyEndpoint { | ||
#[turbo_tasks::function] | ||
pub fn new() -> Vc<Self> { | ||
EmptyEndpoint.cell() | ||
} | ||
} | ||
|
||
#[turbo_tasks::value_impl] | ||
impl Endpoint for EmptyEndpoint { | ||
#[turbo_tasks::function] | ||
fn write_to_disk(self: Vc<Self>) -> Result<Vc<WrittenEndpoint>> { | ||
bail!("Empty endpoint can't be written to disk") | ||
} | ||
|
||
#[turbo_tasks::function] | ||
fn server_changed(self: Vc<Self>) -> Vc<Completion> { | ||
Completion::new() | ||
} | ||
|
||
#[turbo_tasks::function] | ||
fn client_changed(self: Vc<Self>) -> Vc<Completion> { | ||
Completion::new() | ||
} | ||
|
||
#[turbo_tasks::function] | ||
fn root_modules(self: Vc<Self>) -> Vc<Modules> { | ||
Vc::cell(vec![]) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.