mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
17 lines
880 B
JavaScript
17 lines
880 B
JavaScript
import { registerServerReference } from "private-next-rsc-server-reference";
|
|
import { cache as $$cache__ } from "private-next-rsc-cache-wrapper";
|
|
import { cache as $$reactCache__ } from "react";
|
|
// shadow the builtin Object global (used in transform output)
|
|
/* __next_internal_action_entry_do_not_use__ {"803128060c414d59f8552e4788b846c0d2b7f74743":{"name":"$$RSC_SERVER_CACHE_0"}} */ const Object1 = {};
|
|
const $$RSC_SERVER_CACHE_0_INNER = async function foo() {
|
|
return 1;
|
|
};
|
|
export var $$RSC_SERVER_CACHE_0 = $$reactCache__(function foo() {
|
|
return $$cache__("default", "803128060c414d59f8552e4788b846c0d2b7f74743", 0, $$RSC_SERVER_CACHE_0_INNER, []);
|
|
});
|
|
registerServerReference($$RSC_SERVER_CACHE_0, "803128060c414d59f8552e4788b846c0d2b7f74743", null);
|
|
Object["defineProperty"]($$RSC_SERVER_CACHE_0, "name", {
|
|
value: "foo"
|
|
});
|
|
export var foo = $$RSC_SERVER_CACHE_0;
|