@cocos/ccbuild 1.1.2 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @cocos/ccbuild
2
2
 
3
+ ## 1.1.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 9406d42: add EDITOR_PREVIEW dynamic constant
8
+
3
9
  ## 1.1.2
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocos/ccbuild",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "The next generation of build tool for Cocos engine.",
5
5
  "main": "./lib/index.js",
6
6
  "typings": "./lib/index.d.ts",
@@ -10,3 +10,4 @@ export const JSB = tryDefineGlobal('CC_JSB', defined('jsb'));
10
10
  export const NATIVE = JSB;
11
11
  export const HTML5 = !(EDITOR && NATIVE);
12
12
  export const DEV = tryDefineGlobal('CC_DEV', true);
13
+ export const EDITOR_PREVIEW = EDITOR && (typeof window === 'undefined' ? global : window).isPreviewProcess;