Add .gitignore to exclude all node packages and lock files
This commit is contained in:
Generated
Vendored
+35
@@ -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;
|
||||
Reference in New Issue
Block a user