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