@cocos/ccbuild 1.1.18 → 1.1.20

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.
Files changed (48) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +37 -37
  3. package/lib/api-builder.js +1 -1
  4. package/lib/build-engine/engine-js/index.d.ts +2 -2
  5. package/lib/build-engine/engine-js/index.js +406 -406
  6. package/lib/build-engine/engine-js/rollup-plugins/external-wasm-loader.d.ts +57 -57
  7. package/lib/build-engine/engine-js/rollup-plugins/external-wasm-loader.d.ts.map +1 -1
  8. package/lib/build-engine/engine-js/rollup-plugins/external-wasm-loader.js +326 -323
  9. package/lib/build-engine/engine-js/rollup-plugins/external-wasm-loader.js.map +1 -1
  10. package/lib/build-engine/engine-js/rollup-plugins/remove-deprecated-features.d.ts +2 -2
  11. package/lib/build-engine/engine-js/rollup-plugins/remove-deprecated-features.js +37 -37
  12. package/lib/build-engine/engine-js/rollup-plugins/ts-paths.d.ts +4 -4
  13. package/lib/build-engine/engine-js/rollup-plugins/ts-paths.js +42 -42
  14. package/lib/build-engine/engine-ts/engine-builder.d.ts +57 -57
  15. package/lib/build-engine/engine-ts/engine-builder.js +631 -631
  16. package/lib/build-engine/engine-ts/field-decorator-helper.d.ts +9 -9
  17. package/lib/build-engine/engine-ts/field-decorator-helper.js +54 -54
  18. package/lib/build-engine/engine-ts/index.d.ts +2 -2
  19. package/lib/build-engine/engine-ts/index.js +36 -36
  20. package/lib/build-engine/engine-ts/plugins/external-wasm-loader.d.ts +6 -6
  21. package/lib/build-engine/engine-ts/plugins/external-wasm-loader.js +65 -65
  22. package/lib/build-engine/engine-ts/plugins/interface.d.ts +20 -20
  23. package/lib/build-engine/engine-ts/plugins/interface.js +1 -1
  24. package/lib/build-engine/index.d.ts +147 -145
  25. package/lib/build-engine/index.d.ts.map +1 -1
  26. package/lib/build-engine/index.js +168 -167
  27. package/lib/build-engine/index.js.map +1 -1
  28. package/lib/index.d.ts +4 -4
  29. package/lib/index.js +33 -33
  30. package/lib/module-resolver.d.ts +7 -7
  31. package/lib/module-resolver.js +28 -28
  32. package/lib/stats-query/config-interface.d.ts +129 -129
  33. package/lib/stats-query/config-interface.js +3 -3
  34. package/lib/stats-query/index.d.ts +183 -183
  35. package/lib/stats-query/index.js +531 -531
  36. package/lib/stats-query/path-utils.d.ts +2 -2
  37. package/lib/stats-query/path-utils.js +35 -35
  38. package/lib/transformer/babel.d.ts +5 -5
  39. package/lib/transformer/babel.js +34 -34
  40. package/lib/transformer/index.d.ts +2 -2
  41. package/lib/transformer/index.js +28 -28
  42. package/lib/utils.d.ts +4 -4
  43. package/lib/utils.js +23 -23
  44. package/package.json +1 -1
  45. package/static/helper-dynamic-constants.txt +13 -13
  46. package/static/helper-file-decorator.ts +20 -20
  47. package/static/helper-global-exporter.txt +8 -8
  48. package/static/lib.dom.d.ts +20227 -20227
@@ -1,58 +1,58 @@
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;
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,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"}
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;AAkPjC;;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"}