Chore: Migrate build to vite (#1033)
* Chore: Add move most types from rrweb to @rrweb/types package * Split off type imports * Split off type import to its own line * Get vite to generate type definitions * Apply formatting changes * noEmit not allowed in tsconfig, moved it to build step * Migrate rrdom-nodejs build to vite * Apply formatting changes * Migrate rrweb-snapshot to vite * Unify configs * Chore: Migrate rrdom to vite Turns out what we where doing by overwriting `public textContent: string | undefined` as a getter in a subclass is something that isn't allowed in typescript. Because we where using `// @ts-ignore` to hide this error our bundler chose to allow the overwrite. Vite choses to disallow the overwrite making all subclasses' `textContent` undefined. To mitigate this we're using an abstract class, which does allow sub classes to decide if they wan't to use getters or not. * Chore: Migrate rrweb to vite WIP * build:browser was removed (for now) * BREAKING: moved rrweb-plugin-console to its own npm module This removes console from rrweb-all.js * Support cjs files in startServer * Move canvas-webrtc plugin to its own package * Chore: move sequential-id plugin to its own package * Chore: Configure rrweb's vite bundling * `Id` had lowercase `d` before, making it lowercase again * Test: Move console tests to their own package * remove unused utils from rrdom * pull in latest version of master something when wrong earlier when resolving merge conflicts, this should be correct * Fix type casting issue in diff.ts * Fix typo * Fix duplicate entries in package.json and tsconfig.json * Apply formatting changes * Update dependencies in package.json files * Update dependencies to use Vite 5.2.8 in package.json files * Get tests passing for rrdom `apply virtual style rules to node` tests need to be moved to rrweb to avoid circular dependencies * Fix image loading issue in integration tests * Move pack/unpack to its own @rrweb/packer module * Get tests to work in rrdom-nodejs * Port tests in rrweb-snapshot to vitest and fix them * Fix tests for rrweb-plugin-console-record * Add @rrweb/all package * Fix publint and attw errors for rrdom and @rrweb/types * Use shared vitest.config.ts in rrweb-snapshot package * Fix publint and attw issues for rrweb-snapshot * Export `ReplayPlugin` type directly from rrweb * Fix publint and attw issues for packages * Fix publint & attw issue. I was bumping into this issue:3729bc2a3c/docs/problems/NoResolution.mdAnd had to choose one of these three methods described here: https://github.com/andrewbranch/example-subpath-exports-ts-compat?tab=readme-ov-file#typescript-friendly-strategies-for-packagejson-subpath-exports-compatibility And I ended up going for the method described here:1ffe3425b0/examples/node_modules/package-json-redirects (package-json-redirects)The redirect method seemed the least invasive and most effective. * Fix publint & attw issue. I was bumping into this issue:3729bc2a3c/docs/problems/NoResolution.mdAnd had to choose one of these three methods described here: https://github.com/andrewbranch/example-subpath-exports-ts-compat?tab=readme-ov-file#typescript-friendly-strategies-for-packagejson-subpath-exports-compatibility And I ended up going for the method described here:1ffe3425b0/examples/node_modules/package-json-redirects (package-json-redirects)The redirect method seemed the least invasive and most effective. * move some rrdom tests that require rrweb to rrweb package * Use pre-jest 29 syntax for snapshotting * get rrweb passing publint and attw * const enum does not work with isolated modules flag * Fix script tag type in webgl.test.ts.snap and update rrweb.umd.cjs path in webgl.test.ts * Fix paths * Move tests for console record plugin and fix bundle path * Fix tests for rrweb * pack integration tests were moved to @rrweb/all * Update rrweb bundle path in test files * Fix flaky scroll emit from test * Migrate rrweb's tests over to vitest and make them pass * Make sure benchmarks & updating tests work * Remove jest from rrweb * Fix paths * always use rrweb's own cssom * Update tsconfig.json for rrweb-plugin-sequential-id-record Fixes this error: Error: @rrweb/rrweb-plugin-sequential-id-record:prepublish: tsconfig.json(9,5): error TS6377: Cannot write file '/home/runner/work/rrweb/rrweb/tsconfig.tsbuildinfo' because it will overwrite '.tsbuildinfo' file generated by referenced project '/home/runner/work/rrweb/rrweb/packages/rrweb' * Add tsbuildinfo config to extended tsconfig files * Move rrdom over to vitest * Apply formatting changes * Update rrweb imports to use the new package structure * extend rrweb-snapshot's tsconfig from monorepo base config * extend @rrweb/types's tsconfig from monorepo base config * extend rrdom's tsconfig from monorepo base config * extend rrdom-nodejs's tsconfig from monorepo base config * extend web-extension's tsconfig from monorepo base config * unify tsconfigs * Continue when tests fail * Add stricter type checking * Add check-types global command * remove jest * Remove unused code * Add check-types command to build script * Fix linting issues * Add setup Chrome action for CI/CD workflow * Update puppeteer version in package.json for rrweb * Update Chrome setup in CI/CD workflow * Update Chrome setup in CI/CD workflow * Add Chrome setup and test cache location * Update CI/CD workflow to test chrome cache location * Add chrome installation step to CI/CD workflow * Update Puppeteer configuration for headless testing * Update dependencies and workflow configuration * Use same version of chrome on CI as is run locally * Use version of chrome that seems to work with rrdom tests * Try using puppeteerrc to define chrome version * Add .cache directory to .gitignore * Move global flag to vitest config * Update puppeteer version to 20.9.0 * Update console log messages in rrweb-plugin-console-record for new puppeteer version * Remove redundant Chrome setup from CI/CD workflow * Add minification and umd for all built files * Update import paths for rrweb dist files * Add @rrweb/replay and @rrweb/record * Add script to lint packages * Apply formatting changes * exclude styles export from typescript package type checking * WIP Move rrweb-player over to vite * Apply formatting changes * chore: Update rrweb plugin import paths * Remove rollup from rrweb-player * Fix typing issues * Fix typing issues * chore: Update rrweb-player to use vite for build process * Apply formatting changes * chore: Export Player class in rrweb-player/src/main.ts Makes attw happy * Apply formatting changes * Gets wiped by yarn workspaces-to-typescript-project-references * Add .eslintignore and .eslintrc.cjs files for rrweb-player package * Apply formatting changes * Update dependencies in rrweb-player/package.json * Apply formatting changes * chore: Update eslint configuration for rrweb-player package * Apply formatting changes * chore: Remove unused files from rrweb-player package * Apply formatting changes * chore: Update rrweb-player import path to use rrweb-player.cjs * chore: Update addEventListener signature in rrweb-player * Apply formatting changes * Add .eslintignore and update .gitignore files for to root * Apply formatting changes * Update documentation * Update @rrweb/types package description * Apply formatting changes * Update build and run commands in CONTRIBUTING.md * Apply formatting changes * Update package versions to 2.0.0-alpha.13 * Apply formatting changes * Apply formatting changes * Fix import statement in media/index.ts * Apply formatting changes * chore: Update .gitignore to exclude build and dist directories * Apply formatting changes * Apply formatting changes * Migrate setTimeout to vitest * Apply formatting changes * Apply formatting changes * Fix isNativeShadowDom function signature in utils.ts * try out jsr * Apply formatting changes * Update package versions to 2.0.0-alpha.14 * Apply formatting changes * Fix name of rrwebSnapshot object * Apply formatting changes * Remove unused lock files * Apply formatting changes * Update rrweb bundle path to use umd.cjs format * Apply formatting changes * Trigger tests to run again * Rename snapshots for vitest * Apply formatting changes * Ping CI * Apply formatting changes * Ping CI * Apply formatting changes * Ignore files generated by svelte-kit for prettier * Correct Player object
This commit is contained in:
503
packages/rrweb-player/.svelte-kit/ambient.d.ts
vendored
Normal file
503
packages/rrweb-player/.svelte-kit/ambient.d.ts
vendored
Normal file
@@ -0,0 +1,503 @@
|
||||
// this file is generated — do not edit it
|
||||
|
||||
/// <reference types="@sveltejs/kit" />
|
||||
|
||||
/**
|
||||
* Environment variables [loaded by Vite](https://vitejs.dev/guide/env-and-mode.html#env-files) from `.env` files and `process.env`. Like [`$env/dynamic/private`](https://kit.svelte.dev/docs/modules#$env-dynamic-private), this module cannot be imported into client-side code. This module only includes variables that _do not_ begin with [`config.kit.env.publicPrefix`](https://kit.svelte.dev/docs/configuration#env) _and do_ start with [`config.kit.env.privatePrefix`](https://kit.svelte.dev/docs/configuration#env) (if configured).
|
||||
*
|
||||
* _Unlike_ [`$env/dynamic/private`](https://kit.svelte.dev/docs/modules#$env-dynamic-private), the values exported from this module are statically injected into your bundle at build time, enabling optimisations like dead code elimination.
|
||||
*
|
||||
* ```ts
|
||||
* import { API_KEY } from '$env/static/private';
|
||||
* ```
|
||||
*
|
||||
* Note that all environment variables referenced in your code should be declared (for example in an `.env` file), even if they don't have a value until the app is deployed:
|
||||
*
|
||||
* ```
|
||||
* MY_FEATURE_FLAG=""
|
||||
* ```
|
||||
*
|
||||
* You can override `.env` values from the command line like so:
|
||||
*
|
||||
* ```bash
|
||||
* MY_FEATURE_FLAG="enabled" npm run dev
|
||||
* ```
|
||||
*/
|
||||
declare module '$env/static/private' {
|
||||
export const GITHUB_STATE: string;
|
||||
export const GIT_CLONE_PROTECTION_ACTIVE: string;
|
||||
export const npm_package_scripts_test_cross_platform_build: string;
|
||||
export const npm_package_devDependencies_rollup: string;
|
||||
export const npm_package_devDependencies__types_node: string;
|
||||
export const STATS_TRP: string;
|
||||
export const DEPLOYMENT_BASEPATH: string;
|
||||
export const DOTNET_NOLOGO: string;
|
||||
export const npm_package_devDependencies_vitest: string;
|
||||
export const USER: string;
|
||||
export const npm_package_bin_svelte_kit: string;
|
||||
export const npm_package_dependencies_sirv: string;
|
||||
export const npm_package_dependencies_sade: string;
|
||||
export const npm_package_dependencies_mrmime: string;
|
||||
export const npm_package_dependencies_magic_string: string;
|
||||
export const npm_config_version_commit_hooks: string;
|
||||
export const npm_config_user_agent: string;
|
||||
export const CI: string;
|
||||
export const npm_package_scripts_generate_version: string;
|
||||
export const npm_package_dependencies__types_cookie: string;
|
||||
export const npm_config_bin_links: string;
|
||||
export const RUNNER_ENVIRONMENT: string;
|
||||
export const GITHUB_ENV: string;
|
||||
export const PIPX_HOME: string;
|
||||
export const npm_node_execpath: string;
|
||||
export const npm_package_devDependencies_vite: string;
|
||||
export const npm_package_devDependencies__sveltejs_vite_plugin_svelte: string;
|
||||
export const npm_config_init_version: string;
|
||||
export const JAVA_HOME_8_X64: string;
|
||||
export const SHLVL: string;
|
||||
export const npm_package_exports___node_types: string;
|
||||
export const npm_package_files_0: string;
|
||||
export const HOME: string;
|
||||
export const npm_package_files_1: string;
|
||||
export const npm_package_repository_directory: string;
|
||||
export const RUNNER_TEMP: string;
|
||||
export const GITHUB_EVENT_PATH: string;
|
||||
export const npm_package_files_2: string;
|
||||
export const JAVA_HOME_11_X64: string;
|
||||
export const PIPX_BIN_DIR: string;
|
||||
export const GITHUB_REPOSITORY_OWNER: string;
|
||||
export const npm_package_engines_node: string;
|
||||
export const npm_package_exports___vite_import: string;
|
||||
export const npm_package_files_3: string;
|
||||
export const npm_package_devDependencies_svelte_preprocess: string;
|
||||
export const npm_config_init_license: string;
|
||||
export const GRADLE_HOME: string;
|
||||
export const ANDROID_NDK_LATEST_HOME: string;
|
||||
export const JAVA_HOME_21_X64: string;
|
||||
export const STATS_RDCL: string;
|
||||
export const GITHUB_RETENTION_DAYS: string;
|
||||
export const npm_package_files_4: string;
|
||||
export const npm_config_version_tag_prefix: string;
|
||||
export const GITHUB_REPOSITORY_OWNER_ID: string;
|
||||
export const POWERSHELL_DISTRIBUTION_CHANNEL: string;
|
||||
export const AZURE_EXTENSION_DIR: string;
|
||||
export const GITHUB_HEAD_REF: string;
|
||||
export const npm_package_scripts_check: string;
|
||||
export const npm_package_files_5: string;
|
||||
export const npm_package_dependencies_tiny_glob: string;
|
||||
export const SYSTEMD_EXEC_PID: string;
|
||||
export const npm_package_scripts_postinstall: string;
|
||||
export const npm_package_files_6: string;
|
||||
export const GITHUB_GRAPHQL_URL: string;
|
||||
export const npm_package_devDependencies_typescript: string;
|
||||
export const npm_package_devDependencies__types_connect: string;
|
||||
export const npm_package_description: string;
|
||||
export const GOROOT_1_20_X64: string;
|
||||
export const NVM_DIR: string;
|
||||
export const npm_package_readmeFilename: string;
|
||||
export const npm_package_types: string;
|
||||
export const npm_package_homepage: string;
|
||||
export const DOTNET_SKIP_FIRST_TIME_EXPERIENCE: string;
|
||||
export const GOROOT_1_21_X64: string;
|
||||
export const JAVA_HOME_17_X64: string;
|
||||
export const ImageVersion: string;
|
||||
export const npm_package_exports___hooks_types: string;
|
||||
export const npm_package_devDependencies__playwright_test: string;
|
||||
export const RUNNER_OS: string;
|
||||
export const GITHUB_API_URL: string;
|
||||
export const GOROOT_1_22_X64: string;
|
||||
export const SWIFT_PATH: string;
|
||||
export const npm_package_type: string;
|
||||
export const RUNNER_USER: string;
|
||||
export const STATS_V3PS: string;
|
||||
export const CHROMEWEBDRIVER: string;
|
||||
export const JOURNAL_STREAM: string;
|
||||
export const GITHUB_WORKFLOW: string;
|
||||
export const _: string;
|
||||
export const npm_package_scripts_lint: string;
|
||||
export const npm_config_registry: string;
|
||||
export const ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: string;
|
||||
export const STATS_D: string;
|
||||
export const GITHUB_RUN_ID: string;
|
||||
export const STATS_VMFE: string;
|
||||
export const GITHUB_REF_TYPE: string;
|
||||
export const BOOTSTRAP_HASKELL_NONINTERACTIVE: string;
|
||||
export const GITHUB_WORKFLOW_SHA: string;
|
||||
export const GITHUB_BASE_REF: string;
|
||||
export const ImageOS: string;
|
||||
export const npm_package_exports___import: string;
|
||||
export const npm_package_devDependencies_dts_buddy: string;
|
||||
export const npm_package_dependencies_kleur: string;
|
||||
export const npm_package_dependencies_devalue: string;
|
||||
export const npm_config_ignore_scripts: string;
|
||||
export const GITHUB_WORKFLOW_REF: string;
|
||||
export const PERFLOG_LOCATION_SETTING: string;
|
||||
export const GITHUB_ACTION_REPOSITORY: string;
|
||||
export const npm_package_exports___package_json: string;
|
||||
export const npm_package_peerDependencies_svelte: string;
|
||||
export const PATH: string;
|
||||
export const NODE: string;
|
||||
export const ANT_HOME: string;
|
||||
export const DOTNET_MULTILEVEL_LOOKUP: string;
|
||||
export const RUNNER_TRACKING_ID: string;
|
||||
export const INVOCATION_ID: string;
|
||||
export const RUNNER_TOOL_CACHE: string;
|
||||
export const npm_package_repository_type: string;
|
||||
export const npm_package_name: string;
|
||||
export const GITHUB_ACTION: string;
|
||||
export const GITHUB_RUN_NUMBER: string;
|
||||
export const GITHUB_TRIGGERING_ACTOR: string;
|
||||
export const RUNNER_ARCH: string;
|
||||
export const XDG_RUNTIME_DIR: string;
|
||||
export const AGENT_TOOLSDIRECTORY: string;
|
||||
export const npm_package_scripts_test_integration: string;
|
||||
export const npm_package_exports___node_polyfills_import: string;
|
||||
export const npm_package_devDependencies__types_set_cookie_parser: string;
|
||||
export const npm_package_scripts_test_unit: string;
|
||||
export const npm_package_exports___vite_types: string;
|
||||
export const npm_config_ignore_path: string;
|
||||
export const LANG: string;
|
||||
export const VCPKG_INSTALLATION_ROOT: string;
|
||||
export const CONDA: string;
|
||||
export const RUNNER_NAME: string;
|
||||
export const XDG_CONFIG_HOME: string;
|
||||
export const STATS_VMD: string;
|
||||
export const GITHUB_REF_NAME: string;
|
||||
export const GITHUB_REPOSITORY: string;
|
||||
export const STATS_D_D: string;
|
||||
export const npm_lifecycle_script: string;
|
||||
export const npm_package_scripts_test_cross_platform_dev: string;
|
||||
export const STATS_UE: string;
|
||||
export const ANDROID_NDK_ROOT: string;
|
||||
export const GITHUB_ACTION_REF: string;
|
||||
export const DEBIAN_FRONTEND: string;
|
||||
export const npm_package_scripts_test: string;
|
||||
export const npm_package_dependencies_esm_env: string;
|
||||
export const npm_config_version_git_message: string;
|
||||
export const GITHUB_REPOSITORY_ID: string;
|
||||
export const GITHUB_ACTIONS: string;
|
||||
export const npm_lifecycle_event: string;
|
||||
export const npm_package_repository_url: string;
|
||||
export const npm_package_version: string;
|
||||
export const GITHUB_REF_PROTECTED: string;
|
||||
export const npm_config_argv: string;
|
||||
export const npm_package_scripts_generate_types: string;
|
||||
export const npm_package_scripts_check_all: string;
|
||||
export const npm_package_devDependencies_svelte: string;
|
||||
export const npm_package_dependencies_cookie: string;
|
||||
export const GITHUB_WORKSPACE: string;
|
||||
export const ACCEPT_EULA: string;
|
||||
export const GITHUB_JOB: string;
|
||||
export const RUNNER_PERFLOG: string;
|
||||
export const YARN_IGNORE_PATH: string;
|
||||
export const npm_package_exports___node_import: string;
|
||||
export const GITHUB_SHA: string;
|
||||
export const GITHUB_RUN_ATTEMPT: string;
|
||||
export const npm_package_devDependencies__types_sade: string;
|
||||
export const npm_config_version_git_tag: string;
|
||||
export const npm_config_version_git_sign: string;
|
||||
export const GITHUB_REF: string;
|
||||
export const GITHUB_ACTOR: string;
|
||||
export const ANDROID_SDK_ROOT: string;
|
||||
export const npm_package_license: string;
|
||||
export const npm_config_strict_ssl: string;
|
||||
export const LEIN_HOME: string;
|
||||
export const npm_package_scripts_format: string;
|
||||
export const GITHUB_PATH: string;
|
||||
export const JAVA_HOME: string;
|
||||
export const PWD: string;
|
||||
export const GITHUB_ACTOR_ID: string;
|
||||
export const RUNNER_WORKSPACE: string;
|
||||
export const npm_execpath: string;
|
||||
export const npm_package_dependencies_set_cookie_parser: string;
|
||||
export const HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: string;
|
||||
export const STATS_TIS: string;
|
||||
export const GITHUB_EVENT_NAME: string;
|
||||
export const HOMEBREW_NO_AUTO_UPDATE: string;
|
||||
export const ANDROID_HOME: string;
|
||||
export const GITHUB_SERVER_URL: string;
|
||||
export const GECKOWEBDRIVER: string;
|
||||
export const LEIN_JAR: string;
|
||||
export const GHCUP_INSTALL_BASE_PREFIX: string;
|
||||
export const GITHUB_OUTPUT: string;
|
||||
export const npm_package_exports___types: string;
|
||||
export const EDGEWEBDRIVER: string;
|
||||
export const STATS_EXT: string;
|
||||
export const npm_package_peerDependencies_vite: string;
|
||||
export const npm_package_peerDependencies__sveltejs_vite_plugin_svelte: string;
|
||||
export const npm_config_save_prefix: string;
|
||||
export const npm_config_ignore_optional: string;
|
||||
export const ANDROID_NDK: string;
|
||||
export const SGX_AESM_ADDR: string;
|
||||
export const CHROME_BIN: string;
|
||||
export const SELENIUM_JAR_PATH: string;
|
||||
export const STATS_EXTP: string;
|
||||
export const npm_package_exports___node_polyfills_types: string;
|
||||
export const INIT_CWD: string;
|
||||
export const ANDROID_NDK_HOME: string;
|
||||
export const GITHUB_STEP_SUMMARY: string;
|
||||
export const npm_package_exports___hooks_import: string;
|
||||
export const npm_package_dependencies_import_meta_resolve: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Similar to [`$env/static/private`](https://kit.svelte.dev/docs/modules#$env-static-private), except that it only includes environment variables that begin with [`config.kit.env.publicPrefix`](https://kit.svelte.dev/docs/configuration#env) (which defaults to `PUBLIC_`), and can therefore safely be exposed to client-side code.
|
||||
*
|
||||
* Values are replaced statically at build time.
|
||||
*
|
||||
* ```ts
|
||||
* import { PUBLIC_BASE_URL } from '$env/static/public';
|
||||
* ```
|
||||
*/
|
||||
declare module '$env/static/public' {}
|
||||
|
||||
/**
|
||||
* This module provides access to runtime environment variables, as defined by the platform you're running on. For example if you're using [`adapter-node`](https://github.com/sveltejs/kit/tree/main/packages/adapter-node) (or running [`vite preview`](https://kit.svelte.dev/docs/cli)), this is equivalent to `process.env`. This module only includes variables that _do not_ begin with [`config.kit.env.publicPrefix`](https://kit.svelte.dev/docs/configuration#env) _and do_ start with [`config.kit.env.privatePrefix`](https://kit.svelte.dev/docs/configuration#env) (if configured).
|
||||
*
|
||||
* This module cannot be imported into client-side code.
|
||||
*
|
||||
* Dynamic environment variables cannot be used during prerendering.
|
||||
*
|
||||
* ```ts
|
||||
* import { env } from '$env/dynamic/private';
|
||||
* console.log(env.DEPLOYMENT_SPECIFIC_VARIABLE);
|
||||
* ```
|
||||
*
|
||||
* > In `dev`, `$env/dynamic` always includes environment variables from `.env`. In `prod`, this behavior will depend on your adapter.
|
||||
*/
|
||||
declare module '$env/dynamic/private' {
|
||||
export const env: {
|
||||
GITHUB_STATE: string;
|
||||
GIT_CLONE_PROTECTION_ACTIVE: string;
|
||||
npm_package_scripts_test_cross_platform_build: string;
|
||||
npm_package_devDependencies_rollup: string;
|
||||
npm_package_devDependencies__types_node: string;
|
||||
STATS_TRP: string;
|
||||
DEPLOYMENT_BASEPATH: string;
|
||||
DOTNET_NOLOGO: string;
|
||||
npm_package_devDependencies_vitest: string;
|
||||
USER: string;
|
||||
npm_package_bin_svelte_kit: string;
|
||||
npm_package_dependencies_sirv: string;
|
||||
npm_package_dependencies_sade: string;
|
||||
npm_package_dependencies_mrmime: string;
|
||||
npm_package_dependencies_magic_string: string;
|
||||
npm_config_version_commit_hooks: string;
|
||||
npm_config_user_agent: string;
|
||||
CI: string;
|
||||
npm_package_scripts_generate_version: string;
|
||||
npm_package_dependencies__types_cookie: string;
|
||||
npm_config_bin_links: string;
|
||||
RUNNER_ENVIRONMENT: string;
|
||||
GITHUB_ENV: string;
|
||||
PIPX_HOME: string;
|
||||
npm_node_execpath: string;
|
||||
npm_package_devDependencies_vite: string;
|
||||
npm_package_devDependencies__sveltejs_vite_plugin_svelte: string;
|
||||
npm_config_init_version: string;
|
||||
JAVA_HOME_8_X64: string;
|
||||
SHLVL: string;
|
||||
npm_package_exports___node_types: string;
|
||||
npm_package_files_0: string;
|
||||
HOME: string;
|
||||
npm_package_files_1: string;
|
||||
npm_package_repository_directory: string;
|
||||
RUNNER_TEMP: string;
|
||||
GITHUB_EVENT_PATH: string;
|
||||
npm_package_files_2: string;
|
||||
JAVA_HOME_11_X64: string;
|
||||
PIPX_BIN_DIR: string;
|
||||
GITHUB_REPOSITORY_OWNER: string;
|
||||
npm_package_engines_node: string;
|
||||
npm_package_exports___vite_import: string;
|
||||
npm_package_files_3: string;
|
||||
npm_package_devDependencies_svelte_preprocess: string;
|
||||
npm_config_init_license: string;
|
||||
GRADLE_HOME: string;
|
||||
ANDROID_NDK_LATEST_HOME: string;
|
||||
JAVA_HOME_21_X64: string;
|
||||
STATS_RDCL: string;
|
||||
GITHUB_RETENTION_DAYS: string;
|
||||
npm_package_files_4: string;
|
||||
npm_config_version_tag_prefix: string;
|
||||
GITHUB_REPOSITORY_OWNER_ID: string;
|
||||
POWERSHELL_DISTRIBUTION_CHANNEL: string;
|
||||
AZURE_EXTENSION_DIR: string;
|
||||
GITHUB_HEAD_REF: string;
|
||||
npm_package_scripts_check: string;
|
||||
npm_package_files_5: string;
|
||||
npm_package_dependencies_tiny_glob: string;
|
||||
SYSTEMD_EXEC_PID: string;
|
||||
npm_package_scripts_postinstall: string;
|
||||
npm_package_files_6: string;
|
||||
GITHUB_GRAPHQL_URL: string;
|
||||
npm_package_devDependencies_typescript: string;
|
||||
npm_package_devDependencies__types_connect: string;
|
||||
npm_package_description: string;
|
||||
GOROOT_1_20_X64: string;
|
||||
NVM_DIR: string;
|
||||
npm_package_readmeFilename: string;
|
||||
npm_package_types: string;
|
||||
npm_package_homepage: string;
|
||||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: string;
|
||||
GOROOT_1_21_X64: string;
|
||||
JAVA_HOME_17_X64: string;
|
||||
ImageVersion: string;
|
||||
npm_package_exports___hooks_types: string;
|
||||
npm_package_devDependencies__playwright_test: string;
|
||||
RUNNER_OS: string;
|
||||
GITHUB_API_URL: string;
|
||||
GOROOT_1_22_X64: string;
|
||||
SWIFT_PATH: string;
|
||||
npm_package_type: string;
|
||||
RUNNER_USER: string;
|
||||
STATS_V3PS: string;
|
||||
CHROMEWEBDRIVER: string;
|
||||
JOURNAL_STREAM: string;
|
||||
GITHUB_WORKFLOW: string;
|
||||
_: string;
|
||||
npm_package_scripts_lint: string;
|
||||
npm_config_registry: string;
|
||||
ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: string;
|
||||
STATS_D: string;
|
||||
GITHUB_RUN_ID: string;
|
||||
STATS_VMFE: string;
|
||||
GITHUB_REF_TYPE: string;
|
||||
BOOTSTRAP_HASKELL_NONINTERACTIVE: string;
|
||||
GITHUB_WORKFLOW_SHA: string;
|
||||
GITHUB_BASE_REF: string;
|
||||
ImageOS: string;
|
||||
npm_package_exports___import: string;
|
||||
npm_package_devDependencies_dts_buddy: string;
|
||||
npm_package_dependencies_kleur: string;
|
||||
npm_package_dependencies_devalue: string;
|
||||
npm_config_ignore_scripts: string;
|
||||
GITHUB_WORKFLOW_REF: string;
|
||||
PERFLOG_LOCATION_SETTING: string;
|
||||
GITHUB_ACTION_REPOSITORY: string;
|
||||
npm_package_exports___package_json: string;
|
||||
npm_package_peerDependencies_svelte: string;
|
||||
PATH: string;
|
||||
NODE: string;
|
||||
ANT_HOME: string;
|
||||
DOTNET_MULTILEVEL_LOOKUP: string;
|
||||
RUNNER_TRACKING_ID: string;
|
||||
INVOCATION_ID: string;
|
||||
RUNNER_TOOL_CACHE: string;
|
||||
npm_package_repository_type: string;
|
||||
npm_package_name: string;
|
||||
GITHUB_ACTION: string;
|
||||
GITHUB_RUN_NUMBER: string;
|
||||
GITHUB_TRIGGERING_ACTOR: string;
|
||||
RUNNER_ARCH: string;
|
||||
XDG_RUNTIME_DIR: string;
|
||||
AGENT_TOOLSDIRECTORY: string;
|
||||
npm_package_scripts_test_integration: string;
|
||||
npm_package_exports___node_polyfills_import: string;
|
||||
npm_package_devDependencies__types_set_cookie_parser: string;
|
||||
npm_package_scripts_test_unit: string;
|
||||
npm_package_exports___vite_types: string;
|
||||
npm_config_ignore_path: string;
|
||||
LANG: string;
|
||||
VCPKG_INSTALLATION_ROOT: string;
|
||||
CONDA: string;
|
||||
RUNNER_NAME: string;
|
||||
XDG_CONFIG_HOME: string;
|
||||
STATS_VMD: string;
|
||||
GITHUB_REF_NAME: string;
|
||||
GITHUB_REPOSITORY: string;
|
||||
STATS_D_D: string;
|
||||
npm_lifecycle_script: string;
|
||||
npm_package_scripts_test_cross_platform_dev: string;
|
||||
STATS_UE: string;
|
||||
ANDROID_NDK_ROOT: string;
|
||||
GITHUB_ACTION_REF: string;
|
||||
DEBIAN_FRONTEND: string;
|
||||
npm_package_scripts_test: string;
|
||||
npm_package_dependencies_esm_env: string;
|
||||
npm_config_version_git_message: string;
|
||||
GITHUB_REPOSITORY_ID: string;
|
||||
GITHUB_ACTIONS: string;
|
||||
npm_lifecycle_event: string;
|
||||
npm_package_repository_url: string;
|
||||
npm_package_version: string;
|
||||
GITHUB_REF_PROTECTED: string;
|
||||
npm_config_argv: string;
|
||||
npm_package_scripts_generate_types: string;
|
||||
npm_package_scripts_check_all: string;
|
||||
npm_package_devDependencies_svelte: string;
|
||||
npm_package_dependencies_cookie: string;
|
||||
GITHUB_WORKSPACE: string;
|
||||
ACCEPT_EULA: string;
|
||||
GITHUB_JOB: string;
|
||||
RUNNER_PERFLOG: string;
|
||||
YARN_IGNORE_PATH: string;
|
||||
npm_package_exports___node_import: string;
|
||||
GITHUB_SHA: string;
|
||||
GITHUB_RUN_ATTEMPT: string;
|
||||
npm_package_devDependencies__types_sade: string;
|
||||
npm_config_version_git_tag: string;
|
||||
npm_config_version_git_sign: string;
|
||||
GITHUB_REF: string;
|
||||
GITHUB_ACTOR: string;
|
||||
ANDROID_SDK_ROOT: string;
|
||||
npm_package_license: string;
|
||||
npm_config_strict_ssl: string;
|
||||
LEIN_HOME: string;
|
||||
npm_package_scripts_format: string;
|
||||
GITHUB_PATH: string;
|
||||
JAVA_HOME: string;
|
||||
PWD: string;
|
||||
GITHUB_ACTOR_ID: string;
|
||||
RUNNER_WORKSPACE: string;
|
||||
npm_execpath: string;
|
||||
npm_package_dependencies_set_cookie_parser: string;
|
||||
HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: string;
|
||||
STATS_TIS: string;
|
||||
GITHUB_EVENT_NAME: string;
|
||||
HOMEBREW_NO_AUTO_UPDATE: string;
|
||||
ANDROID_HOME: string;
|
||||
GITHUB_SERVER_URL: string;
|
||||
GECKOWEBDRIVER: string;
|
||||
LEIN_JAR: string;
|
||||
GHCUP_INSTALL_BASE_PREFIX: string;
|
||||
GITHUB_OUTPUT: string;
|
||||
npm_package_exports___types: string;
|
||||
EDGEWEBDRIVER: string;
|
||||
STATS_EXT: string;
|
||||
npm_package_peerDependencies_vite: string;
|
||||
npm_package_peerDependencies__sveltejs_vite_plugin_svelte: string;
|
||||
npm_config_save_prefix: string;
|
||||
npm_config_ignore_optional: string;
|
||||
ANDROID_NDK: string;
|
||||
SGX_AESM_ADDR: string;
|
||||
CHROME_BIN: string;
|
||||
SELENIUM_JAR_PATH: string;
|
||||
STATS_EXTP: string;
|
||||
npm_package_exports___node_polyfills_types: string;
|
||||
INIT_CWD: string;
|
||||
ANDROID_NDK_HOME: string;
|
||||
GITHUB_STEP_SUMMARY: string;
|
||||
npm_package_exports___hooks_import: string;
|
||||
npm_package_dependencies_import_meta_resolve: string;
|
||||
[key: `PUBLIC_${string}`]: undefined;
|
||||
[key: `${string}`]: string | undefined;
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Similar to [`$env/dynamic/private`](https://kit.svelte.dev/docs/modules#$env-dynamic-private), but only includes variables that begin with [`config.kit.env.publicPrefix`](https://kit.svelte.dev/docs/configuration#env) (which defaults to `PUBLIC_`), and can therefore safely be exposed to client-side code.
|
||||
*
|
||||
* Note that public dynamic environment variables must all be sent from the server to the client, causing larger network requests — when possible, use `$env/static/public` instead.
|
||||
*
|
||||
* Dynamic environment variables cannot be used during prerendering.
|
||||
*
|
||||
* ```ts
|
||||
* import { env } from '$env/dynamic/public';
|
||||
* console.log(env.PUBLIC_DEPLOYMENT_SPECIFIC_VARIABLE);
|
||||
* ```
|
||||
*/
|
||||
declare module '$env/dynamic/public' {
|
||||
export const env: {
|
||||
[key: `PUBLIC_${string}`]: string | undefined;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user