src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.ts/preloadsScriptStr
export function preloadsScriptStr(styleValues: PreloadStyles, options: PreloadOptions, renderers: readonly RendererMetadata[]) {
	// TS will try compiling `import()` in webviePreloads, so use an helper function instead
	// of using `import(...)` directly
	return `
		const __import = (x) => import(x);
		(${webviewPreloads})(
				JSON.parse(decodeURIComponent("${encodeURIComponent(JSON.stringify(styleValues))}")),
				JSON.parse(decodeURIComponent("${encodeURIComponent(JSON.stringify(options))}")),
				JSON.parse(decodeURIComponent("${encodeURIComponent(JSON.stringify(renderers))}"))
			)\n//# sourceURL=notebookWebviewPreloads.js\n`;
}