This sets the entry point of the Node.js application when it is deserialized from a snapshot. This can be called only once in the snapshot building script. If called, the deserialized application no longer needs an additional entry point script to start up and will simply invoke the callback along with the deserialized data (if provided), otherwise an entry point script still needs to be provided to the deserialized application.
function setDeserializeMainFunction | Node.js v8 module | Bun BuildDocsReferenceGuidesBlogDiscord/node:v8/startupSnapshot/setDeserializeMainFunctionFsetDeserializeMainFunction BuildDocsReferenceGuidesBlogDiscord /node:v8/startupSnapshot/setDeserializeMainFunctionFsetDeserializeMainFunction v8.startupSnapshot.setDeserializeMainFunctionfunction setDeserializeMainFunction(callback: StartupSnapshotCallbackFn,data?: any): void; Referenced typestype StartupSnapshotCallbackFn = (args: any) => any
Search the reference...
/
function
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlogToolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →function setDeserializeMainFunction | Node.js v8 module | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- API documentation for function node:v8.startupSnapshot.setDeserializeMainFunction | Bun