54727f9874
e.g. by replacing `__VUE_OPTIONS_API__` to `false` using webpack's `DefinePlugin`, the final bundle will drop all code supporting the options API. This does not break existing usage, but requires the user to explicitly configure the feature flags via bundlers to properly tree-shake the disabled branches. As a result, users will see a console warning if the flags have not been properly configured.
16 lines
479 B
TypeScript
16 lines
479 B
TypeScript
// Global compile-time constants
|
|
declare var __DEV__: boolean
|
|
declare var __TEST__: boolean
|
|
declare var __BROWSER__: boolean
|
|
declare var __GLOBAL__: boolean
|
|
declare var __ESM_BUNDLER__: boolean
|
|
declare var __ESM_BROWSER__: boolean
|
|
declare var __NODE_JS__: boolean
|
|
declare var __COMMIT__: string
|
|
declare var __VERSION__: string
|
|
|
|
// Feature flags
|
|
declare var __FEATURE_OPTIONS_API__: boolean
|
|
declare var __FEATURE_PROD_DEVTOOLS__: boolean
|
|
declare var __FEATURE_SUSPENSE__: boolean
|