Add .gitignore to exclude all node packages and lock files

This commit is contained in:
Adolfo Reyna
2026-02-23 21:56:04 -05:00
parent faae96c9ed
commit dcc5c6c044
9747 changed files with 1555105 additions and 2 deletions
@@ -0,0 +1,35 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getRemotionEnvironment = void 0;
// Avoid VITE obfuscation
function getNodeEnvString() {
return ['NOD', 'E_EN', 'V'].join('');
}
const getEnvString = () => {
return ['e', 'nv'].join('');
};
/*
* @description Provides information about the Remotion Environment.
* @note Prefer using the `useRemotionEnvironment()` hook as it will support future scoped contexts for browser rendering scenarios.
* @see [Documentation](https://remotion.dev/docs/get-remotion-environment)
*/
const getRemotionEnvironment = () => {
const isPlayer = typeof window !== 'undefined' && window.remotion_isPlayer;
const isRendering = typeof window !== 'undefined' &&
typeof window.process !== 'undefined' &&
typeof window.process.env !== 'undefined' &&
(window.process[getEnvString()][getNodeEnvString()] === 'test' ||
(window.process[getEnvString()][getNodeEnvString()] === 'production' &&
typeof window !== 'undefined' &&
typeof window.remotion_puppeteerTimeout !== 'undefined'));
const isStudio = typeof window !== 'undefined' && window.remotion_isStudio;
const isReadOnlyStudio = typeof window !== 'undefined' && window.remotion_isReadOnlyStudio;
return {
isStudio,
isRendering,
isPlayer,
isReadOnlyStudio,
isClientSideRendering: false,
};
};
exports.getRemotionEnvironment = getRemotionEnvironment;