Skip to content

🎥 Make videos programmatically with React

467 B
Raw Blame
import ReactRefreshRuntime from 'react-refresh/runtime';

ReactRefreshRuntime.injectIntoGlobalHook(globalThis);

const projectBundleUrl = new URLSearchParams(
	new URL(import.meta.url).hash.slice(1),
).get('projectBundleUrl');
if (!projectBundleUrl) {
	throw new Error('Browser Studio project bundle URL was not provided');
}

import('./browser-studio-vendor-runtime').then(
	({initializeBrowserStudioVendor}) =>
		initializeBrowserStudioVendor(projectBundleUrl),
);