mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 07:42:38 +08:00
Introduce the EXPORT_TO_GLOBAL (#7820)
* Introduce the `EXPORT_TO_GLOBAL` * Bump version
This commit is contained in:
committed by
GitHub
parent
1009356f35
commit
16cc7569eb
Vendored
+11
-4
@@ -1,5 +1,13 @@
|
||||
declare module 'internal:constants' {
|
||||
/**
|
||||
* This constant is private and used for internal purpose only.
|
||||
*
|
||||
* If true, some of the constants of `internal:constants` would be also export to the global namespace.
|
||||
* For example would set `CC_EDITOR` on `globalThis` as `EDITOR`.
|
||||
* This is due to we at present inherits the way how Creator prior to 3.0 deploys the build time constants.
|
||||
*/
|
||||
export const EXPORT_TO_GLOBAL: boolean;
|
||||
|
||||
declare module "internal:constants" {
|
||||
/**
|
||||
* Running in published project.
|
||||
*/
|
||||
@@ -89,7 +97,7 @@ declare module "internal:constants" {
|
||||
* Running in the linksure's quick game.
|
||||
*/
|
||||
export const LINKSURE: boolean;
|
||||
|
||||
|
||||
/**
|
||||
* Running in mini game.
|
||||
*/
|
||||
@@ -100,6 +108,5 @@ declare module "internal:constants" {
|
||||
*/
|
||||
export const RUNTIME_BASED: boolean;
|
||||
|
||||
|
||||
export const SUPPORT_JIT: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user