UNPKG

650 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.checkMultipleRemotionVersions = void 0;
4const checkMultipleRemotionVersions = () => {
5 if (typeof window === 'undefined') {
6 return;
7 }
8 if (window.remotion_imported) {
9 console.error('🚨 Multiple versions of Remotion detected. Multiple versions will cause conflicting React contexts and things may break in an unexpected way. Please check your dependency tree and make sure only one version of Remotion is on the page.');
10 }
11 window.remotion_imported = true;
12};
13exports.checkMultipleRemotionVersions = checkMultipleRemotionVersions;