@cocos/ccbuild 1.1.16 → 1.1.18
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 +12 -0
- package/README.md +37 -37
- 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.js +406 -406
- package/lib/build-engine/engine-js/rollup-plugins/external-wasm-loader.d.ts +57 -57
- 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 +323 -298
- 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 +36 -36
- 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 +145 -145
- package/lib/build-engine/index.d.ts.map +1 -1
- package/lib/build-engine/index.js +167 -154
- package/lib/build-engine/index.js.map +1 -1
- 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 +183 -183
- 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 +4 -4
- package/lib/utils.js +23 -23
- package/package.json +1 -1
- 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
|
|
2
|
-
/**
|
|
3
|
-
* This plugin enable to load script or wasm with url based on 'external://' origin.
|
|
4
|
-
*/
|
|
5
|
-
export declare function externalWasmLoader(options: externalWasmLoader.Options): rollup.Plugin;
|
|
6
|
-
export declare namespace externalWasmLoader {
|
|
7
|
-
interface Options {
|
|
8
|
-
/**
|
|
9
|
-
* The root path of external repository
|
|
10
|
-
*/
|
|
11
|
-
externalRoot: string;
|
|
12
|
-
/**
|
|
13
|
-
* The wasm support mode:
|
|
14
|
-
* 0. not support
|
|
15
|
-
* 1. support
|
|
16
|
-
* 2. maybe support
|
|
17
|
-
*/
|
|
18
|
-
wasmSupportMode: number;
|
|
19
|
-
/**
|
|
20
|
-
* Whether need a fallback of wasm.
|
|
21
|
-
* If true, we need to build a wasm fallback module for the compatibility of wasm files compiled by different version of emscripten.
|
|
22
|
-
*/
|
|
23
|
-
wasmFallback: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Whether force banning to emit bullet wasm.
|
|
26
|
-
*/
|
|
27
|
-
forceBanningBulletWasm: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* Whether cull asm js module.
|
|
30
|
-
*/
|
|
31
|
-
cullAsmJsModule: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Build external wasm module as minigame subpackage.
|
|
34
|
-
* This feature is for minigame platforms.
|
|
35
|
-
*/
|
|
36
|
-
wasmSubpackage: boolean;
|
|
37
|
-
format?: Format;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* How to generate the reference to external assets:
|
|
41
|
-
* - `'relative-from-out'`
|
|
42
|
-
* Generate the path relative from `out` directory, does not contain the leading './'.
|
|
43
|
-
*
|
|
44
|
-
* - `'relative-from-chunk'`
|
|
45
|
-
* Generate the path relative from the referencing output chunk.
|
|
46
|
-
*
|
|
47
|
-
* - `'dynamic'`(default)
|
|
48
|
-
* Use runtime `URL` API to resolve the absolute URL.
|
|
49
|
-
* This requires `URL` and `import.meta.url` to be valid.
|
|
50
|
-
*/
|
|
51
|
-
type Format = 'relative-from-out' | 'relative-from-chunk' | 'runtime-resolved';
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Convert the file path to asset ref URL.
|
|
55
|
-
* @param file File path in absolute.
|
|
56
|
-
*/
|
|
57
|
-
export declare function pathToAssetRefURL(file: string): string;
|
|
1
|
+
import * as rollup from 'rollup';
|
|
2
|
+
/**
|
|
3
|
+
* This plugin enable to load script or wasm with url based on 'external://' origin.
|
|
4
|
+
*/
|
|
5
|
+
export declare function externalWasmLoader(options: externalWasmLoader.Options): rollup.Plugin;
|
|
6
|
+
export declare namespace externalWasmLoader {
|
|
7
|
+
interface Options {
|
|
8
|
+
/**
|
|
9
|
+
* The root path of external repository
|
|
10
|
+
*/
|
|
11
|
+
externalRoot: string;
|
|
12
|
+
/**
|
|
13
|
+
* The wasm support mode:
|
|
14
|
+
* 0. not support
|
|
15
|
+
* 1. support
|
|
16
|
+
* 2. maybe support
|
|
17
|
+
*/
|
|
18
|
+
wasmSupportMode: number;
|
|
19
|
+
/**
|
|
20
|
+
* Whether need a fallback of wasm.
|
|
21
|
+
* If true, we need to build a wasm fallback module for the compatibility of wasm files compiled by different version of emscripten.
|
|
22
|
+
*/
|
|
23
|
+
wasmFallback: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Whether force banning to emit bullet wasm.
|
|
26
|
+
*/
|
|
27
|
+
forceBanningBulletWasm: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Whether cull asm js module.
|
|
30
|
+
*/
|
|
31
|
+
cullAsmJsModule: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Build external wasm module as minigame subpackage.
|
|
34
|
+
* This feature is for minigame platforms.
|
|
35
|
+
*/
|
|
36
|
+
wasmSubpackage: boolean;
|
|
37
|
+
format?: Format;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* How to generate the reference to external assets:
|
|
41
|
+
* - `'relative-from-out'`
|
|
42
|
+
* Generate the path relative from `out` directory, does not contain the leading './'.
|
|
43
|
+
*
|
|
44
|
+
* - `'relative-from-chunk'`
|
|
45
|
+
* Generate the path relative from the referencing output chunk.
|
|
46
|
+
*
|
|
47
|
+
* - `'dynamic'`(default)
|
|
48
|
+
* Use runtime `URL` API to resolve the absolute URL.
|
|
49
|
+
* This requires `URL` and `import.meta.url` to be valid.
|
|
50
|
+
*/
|
|
51
|
+
type Format = 'relative-from-out' | 'relative-from-chunk' | 'runtime-resolved';
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Convert the file path to asset ref URL.
|
|
55
|
+
* @param file File path in absolute.
|
|
56
|
+
*/
|
|
57
|
+
export declare function pathToAssetRefURL(file: string): string;
|
|
58
58
|
//# sourceMappingURL=external-wasm-loader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"external-wasm-loader.d.ts","sourceRoot":"","sources":["../../../../src/build-engine/engine-js/rollup-plugins/external-wasm-loader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"external-wasm-loader.d.ts","sourceRoot":"","sources":["../../../../src/build-engine/engine-js/rollup-plugins/external-wasm-loader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAiPjC;;GAEG;AACH,wBAAgB,kBAAkB,CAAE,OAAO,EAAE,kBAAkB,CAAC,OAAO,GAAG,MAAM,CAAC,MAAM,CAuEtF;AAED,MAAM,CAAC,OAAO,WAAW,kBAAkB,CAAC;IACxC,UAAiB,OAAO;QACpB;;WAEG;QACH,YAAY,EAAE,MAAM,CAAC;QACrB;;;;;WAKG;QACH,eAAe,EAAE,MAAM,CAAC;QACxB;;;WAGG;QACH,YAAY,EAAE,OAAO,CAAC;QACtB;;WAEG;QACH,sBAAsB,EAAE,OAAO,CAAC;QAChC;;WAEG;QACH,eAAe,EAAE,OAAO,CAAC;QACzB;;;WAGG;QACH,cAAc,EAAE,OAAO,CAAC;QACxB,MAAM,CAAC,EAAE,MAAM,CAAC;KACnB;IAED;;;;;;;;;;;OAWG;IACH,KAAY,MAAM,GACZ,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CAAC;CAC5B;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAE,IAAI,EAAE,MAAM,UAE9C"}
|