Introduce the EXPORT_TO_GLOBAL (#7820)

* Introduce the `EXPORT_TO_GLOBAL`

* Bump version
This commit is contained in:
Leslie Leigh (李的序)
2020-11-19 15:54:33 +08:00
committed by GitHub
parent 1009356f35
commit 16cc7569eb
8 changed files with 27 additions and 14 deletions
+11 -4
View File
@@ -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;
}
}