@cocos/ccbuild 1.1.5 → 1.1.7
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 +13 -0
- package/README.md +14 -14
- package/lib/api-builder.js +1 -1
- package/lib/build-engine/engine-js/index.d.ts +2 -2
- package/lib/build-engine/engine-js/index.d.ts.map +1 -1
- package/lib/build-engine/engine-js/index.js +412 -411
- package/lib/build-engine/engine-js/index.js.map +1 -1
- package/lib/build-engine/engine-js/rollup-plugins/external-wasm-loader.d.ts +43 -36
- package/lib/build-engine/engine-js/rollup-plugins/external-wasm-loader.d.ts.map +1 -1
- package/lib/build-engine/engine-js/rollup-plugins/external-wasm-loader.js +145 -91
- package/lib/build-engine/engine-js/rollup-plugins/external-wasm-loader.js.map +1 -1
- package/lib/build-engine/engine-js/rollup-plugins/remove-deprecated-features.d.ts +2 -2
- package/lib/build-engine/engine-js/rollup-plugins/remove-deprecated-features.js +37 -37
- package/lib/build-engine/engine-js/rollup-plugins/ts-paths.d.ts +4 -4
- package/lib/build-engine/engine-js/rollup-plugins/ts-paths.js +42 -42
- package/lib/build-engine/engine-ts/engine-builder.d.ts +57 -57
- package/lib/build-engine/engine-ts/engine-builder.js +631 -631
- package/lib/build-engine/engine-ts/field-decorator-helper.d.ts +9 -9
- package/lib/build-engine/engine-ts/field-decorator-helper.js +54 -54
- package/lib/build-engine/engine-ts/index.d.ts +2 -2
- package/lib/build-engine/engine-ts/index.js +34 -34
- package/lib/build-engine/engine-ts/plugins/external-wasm-loader.d.ts +6 -6
- package/lib/build-engine/engine-ts/plugins/external-wasm-loader.js +65 -65
- package/lib/build-engine/engine-ts/plugins/interface.d.ts +20 -20
- package/lib/build-engine/engine-ts/plugins/interface.js +1 -1
- package/lib/build-engine/index.d.ts +130 -130
- package/lib/build-engine/index.js +138 -138
- package/lib/index.d.ts +4 -4
- package/lib/index.js +33 -33
- package/lib/module-resolver.d.ts +7 -7
- package/lib/module-resolver.js +28 -28
- package/lib/stats-query/config-interface.d.ts +129 -129
- package/lib/stats-query/config-interface.js +3 -3
- package/lib/stats-query/index.d.ts +163 -163
- package/lib/stats-query/index.js +531 -531
- package/lib/stats-query/path-utils.d.ts +2 -2
- package/lib/stats-query/path-utils.js +35 -35
- package/lib/transformer/babel.d.ts +5 -5
- package/lib/transformer/babel.js +34 -34
- package/lib/transformer/index.d.ts +2 -2
- package/lib/transformer/index.js +28 -28
- package/lib/utils.d.ts +3 -3
- package/lib/utils.js +19 -19
- package/package.json +2 -2
- package/static/helper-dynamic-constants.txt +13 -13
- package/static/helper-file-decorator.ts +20 -20
- package/static/helper-global-exporter.txt +8 -8
- package/static/lib.dom.d.ts +20227 -20227
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
import { StatsQuery } from "../../stats-query";
|
|
2
|
-
import ConstantManager = StatsQuery.ConstantManager;
|
|
3
|
-
export declare namespace EngineBuilder {
|
|
4
|
-
interface IBuildOptions {
|
|
5
|
-
root: string;
|
|
6
|
-
features?: string[];
|
|
7
|
-
platform: ConstantManager.PlatformType;
|
|
8
|
-
mode: ConstantManager.ModeType;
|
|
9
|
-
flagConfig: Partial<ConstantManager.IFlagConfig>;
|
|
10
|
-
outDir?: string;
|
|
11
|
-
}
|
|
12
|
-
interface IBuildResult {
|
|
13
|
-
[outputFile: string]: IHandleResult;
|
|
14
|
-
}
|
|
15
|
-
interface IHandleResult {
|
|
16
|
-
code: string;
|
|
17
|
-
file: string;
|
|
18
|
-
originalId: string;
|
|
19
|
-
resolvedId: string;
|
|
20
|
-
map: any;
|
|
21
|
-
}
|
|
22
|
-
interface ITransformResult {
|
|
23
|
-
code: string;
|
|
24
|
-
map?: any;
|
|
25
|
-
depIdList: string[];
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
export declare class EngineBuilder {
|
|
29
|
-
private _options;
|
|
30
|
-
private _entries;
|
|
31
|
-
private _entriesForPass2;
|
|
32
|
-
private _virtual2code;
|
|
33
|
-
private _feature2NodeModule;
|
|
34
|
-
private _nodeModules;
|
|
35
|
-
private _virtualOverrides;
|
|
36
|
-
private _buildTimeConstants;
|
|
37
|
-
private _moduleOverrides;
|
|
38
|
-
private _buildResult;
|
|
39
|
-
private _resolveExtension;
|
|
40
|
-
private _renameMap;
|
|
41
|
-
private _filedDecoratorHelper;
|
|
42
|
-
private _plugins;
|
|
43
|
-
private _excludeTransform;
|
|
44
|
-
build(options: EngineBuilder.IBuildOptions): Promise<EngineBuilder.IBuildResult>;
|
|
45
|
-
private _initPlugins;
|
|
46
|
-
private _initOptions;
|
|
47
|
-
private _handleId;
|
|
48
|
-
private _getOverrideId;
|
|
49
|
-
private _resolve;
|
|
50
|
-
private _resolveRelative;
|
|
51
|
-
private _load;
|
|
52
|
-
private _transform;
|
|
53
|
-
private _lintImport;
|
|
54
|
-
private _buildIndex;
|
|
55
|
-
private _copyTypes;
|
|
56
|
-
private _addNodeModulesDeps;
|
|
57
|
-
}
|
|
1
|
+
import { StatsQuery } from "../../stats-query";
|
|
2
|
+
import ConstantManager = StatsQuery.ConstantManager;
|
|
3
|
+
export declare namespace EngineBuilder {
|
|
4
|
+
interface IBuildOptions {
|
|
5
|
+
root: string;
|
|
6
|
+
features?: string[];
|
|
7
|
+
platform: ConstantManager.PlatformType;
|
|
8
|
+
mode: ConstantManager.ModeType;
|
|
9
|
+
flagConfig: Partial<ConstantManager.IFlagConfig>;
|
|
10
|
+
outDir?: string;
|
|
11
|
+
}
|
|
12
|
+
interface IBuildResult {
|
|
13
|
+
[outputFile: string]: IHandleResult;
|
|
14
|
+
}
|
|
15
|
+
interface IHandleResult {
|
|
16
|
+
code: string;
|
|
17
|
+
file: string;
|
|
18
|
+
originalId: string;
|
|
19
|
+
resolvedId: string;
|
|
20
|
+
map: any;
|
|
21
|
+
}
|
|
22
|
+
interface ITransformResult {
|
|
23
|
+
code: string;
|
|
24
|
+
map?: any;
|
|
25
|
+
depIdList: string[];
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
export declare class EngineBuilder {
|
|
29
|
+
private _options;
|
|
30
|
+
private _entries;
|
|
31
|
+
private _entriesForPass2;
|
|
32
|
+
private _virtual2code;
|
|
33
|
+
private _feature2NodeModule;
|
|
34
|
+
private _nodeModules;
|
|
35
|
+
private _virtualOverrides;
|
|
36
|
+
private _buildTimeConstants;
|
|
37
|
+
private _moduleOverrides;
|
|
38
|
+
private _buildResult;
|
|
39
|
+
private _resolveExtension;
|
|
40
|
+
private _renameMap;
|
|
41
|
+
private _filedDecoratorHelper;
|
|
42
|
+
private _plugins;
|
|
43
|
+
private _excludeTransform;
|
|
44
|
+
build(options: EngineBuilder.IBuildOptions): Promise<EngineBuilder.IBuildResult>;
|
|
45
|
+
private _initPlugins;
|
|
46
|
+
private _initOptions;
|
|
47
|
+
private _handleId;
|
|
48
|
+
private _getOverrideId;
|
|
49
|
+
private _resolve;
|
|
50
|
+
private _resolveRelative;
|
|
51
|
+
private _load;
|
|
52
|
+
private _transform;
|
|
53
|
+
private _lintImport;
|
|
54
|
+
private _buildIndex;
|
|
55
|
+
private _copyTypes;
|
|
56
|
+
private _addNodeModulesDeps;
|
|
57
|
+
}
|
|
58
58
|
//# sourceMappingURL=engine-builder.d.ts.map
|