🎥 Make videos programmatically with React
hotfix: fix bundling + rendering
Jonny Burgerd5ee21a24af4
diff --git a/packages/bundler/renderEntry.tsx b/packages/bundler/renderEntry.tsxindex 355b7254fa..0ab22a30a7 100644--- a/packages/bundler/renderEntry.tsx+++ b/packages/bundler/renderEntry.tsx@@ -15,15 +15,26 @@ import type {} from 'remotion';import {AbsoluteFill,- Internals,- VERSION,continueRender,delayRender,getInputProps,getRemotionEnvironment,+ Internals,+ VERSION,} from 'remotion';import {NoReactInternals} from 'remotion/no-react';-import {getBundleMode, setBundleMode} from './src/bundle-mode';++let currentBundleMode: BundleState = {+ type: 'index',+};++const setBundleMode = (state: BundleState) => {+ currentBundleMode = state;+};++const getBundleMode = () => {+ return currentBundleMode;+};Internals.CSSUtils.injectCSS(Internals.CSSUtils.makeDefaultCSS(null, '#1f2428'),diff --git a/packages/bundler/src/bundle-mode.ts b/packages/bundler/src/bundle-mode.tsdeleted file mode 100644index 2622e38099..0000000000--- a/packages/bundler/src/bundle-mode.ts+++ /dev/null@@ -1,13 +0,0 @@-import type {BundleState} from 'remotion';--let bundleMode: BundleState = {- type: 'index',-};--export const setBundleMode = (state: BundleState) => {- bundleMode = state;-};--export const getBundleMode = () => {- return bundleMode;-};