@pandacss/compiler-wasm 2.0.0-beta.18 → 2.0.0-beta.19
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/dist/index.d.ts +2 -2
- package/dist/web.d.ts +2 -2
- package/package.json +5 -4
- package/pkg-node/compiler_wasm.d.ts +1 -13
- package/pkg-node/compiler_wasm.js +6 -21
- package/pkg-node/compiler_wasm_bg.wasm +0 -0
- package/pkg-node/compiler_wasm_bg.wasm.d.ts +2 -2
- package/pkg-web/compiler_wasm.d.ts +3 -15
- package/pkg-web/compiler_wasm.js +6 -21
- package/pkg-web/compiler_wasm_bg.wasm +0 -0
- package/pkg-web/compiler_wasm_bg.wasm.d.ts +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ParseFileReport, ScanOptions, LayerNames, Spec, SourceEntry, FileInspectionResult, ResolveUtilityValueInput, ResolvedUtilityValue, TokenSuggestion, WriteArtifactsOptions, WriteCssOptions, WriteCssResult, WriteLayerCssOptions, WriteSplitCssOptions, WriteSplitCssResult, SerializedHookFilter, Atom, RecipeEntry, EncodedRecipeStyles, ProjectSummary, CompileOptions, CompileOutput, LayerCssOptions, SplitCssOptions, SplitCssResult, GenerateArtifactOptions, CodegenArtifact, CodegenArtifactId, CodegenDependency, Diagnostic, CompileFileManifest, ParsedFileView, StaticPatternResult, BuildInfoArtifact, DesignSystemManifestInput, DesignSystemManifest, SerializedConfig, UtilityValuesCallback, CompilerOptions, Compiler, ProjectCallbacks, ProjectHooks, ConfigSnapshot, Driver } from '@pandacss/compiler-shared';
|
|
1
|
+
import { ParseFileReport, ScanOptions, LayerNames, Spec, SourceEntry, FileInspectionResult, ResolveUtilityValueInput, ResolvedUtilityValue, TokenSuggestion, WriteArtifactsOptions, WriteCssOptions, WriteCssResult, WriteLayerCssOptions, WriteSplitCssOptions, WriteSplitCssResult, SerializedHookFilter, Atom, RecipeEntry, EncodedRecipeStyles, ProjectSummary, CompileOptions, CompileOutput, LayerCssOptions, SplitCssOptions, SplitCssResult, GenerateArtifactOptions, CodegenArtifact, CodegenArtifactId, CodegenDependency, Diagnostic, CompileFileManifest, ParsedFileView, StaticPatternResult, BuildInfoDesignSystemDependency, BuildInfoArtifact, DesignSystemManifestInput, DesignSystemManifest, SerializedConfig, UtilityValuesCallback, CompilerOptions, Compiler, ProjectCallbacks, ProjectHooks, ConfigSnapshot, Driver } from '@pandacss/compiler-shared';
|
|
2
2
|
export * from '@pandacss/compiler-shared';
|
|
3
3
|
export { createUsageReport, mergeCallbacks } from '@pandacss/compiler-shared';
|
|
4
4
|
|
|
@@ -114,7 +114,7 @@ declare class WasmCompiler {
|
|
|
114
114
|
/** Per-file view, or `null` when `path` isn't known. */
|
|
115
115
|
getFile(path: string): ParsedFileView | null;
|
|
116
116
|
staticPatternAtoms(): StaticPatternResult;
|
|
117
|
-
serializeBuildInfo(panda: string): BuildInfoArtifact;
|
|
117
|
+
serializeBuildInfo(panda: string, designSystemDependencies?: BuildInfoDesignSystemDependency[]): BuildInfoArtifact;
|
|
118
118
|
applyBuildInfo(name: string, buildInfo: BuildInfoArtifact, only?: string[]): boolean;
|
|
119
119
|
buildInfoSchemaVersion(): number;
|
|
120
120
|
configFingerprint(): string;
|
package/dist/web.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ParseFileReport, ScanOptions, LayerNames, Spec, SourceEntry, FileInspectionResult, ResolveUtilityValueInput, ResolvedUtilityValue, TokenSuggestion, WriteArtifactsOptions, WriteCssOptions, WriteCssResult, WriteLayerCssOptions, WriteSplitCssOptions, WriteSplitCssResult, SerializedHookFilter, Atom, RecipeEntry, EncodedRecipeStyles, ProjectSummary, CompileOptions, CompileOutput, LayerCssOptions, SplitCssOptions, SplitCssResult, GenerateArtifactOptions, CodegenArtifact, CodegenArtifactId, CodegenDependency, Diagnostic, CompileFileManifest, ParsedFileView, StaticPatternResult, BuildInfoArtifact, DesignSystemManifestInput, DesignSystemManifest, SerializedConfig, UtilityValuesCallback, CompilerOptions, Compiler, ProjectCallbacks, ProjectHooks } from '@pandacss/compiler-shared';
|
|
1
|
+
import { ParseFileReport, ScanOptions, LayerNames, Spec, SourceEntry, FileInspectionResult, ResolveUtilityValueInput, ResolvedUtilityValue, TokenSuggestion, WriteArtifactsOptions, WriteCssOptions, WriteCssResult, WriteLayerCssOptions, WriteSplitCssOptions, WriteSplitCssResult, SerializedHookFilter, Atom, RecipeEntry, EncodedRecipeStyles, ProjectSummary, CompileOptions, CompileOutput, LayerCssOptions, SplitCssOptions, SplitCssResult, GenerateArtifactOptions, CodegenArtifact, CodegenArtifactId, CodegenDependency, Diagnostic, CompileFileManifest, ParsedFileView, StaticPatternResult, BuildInfoDesignSystemDependency, BuildInfoArtifact, DesignSystemManifestInput, DesignSystemManifest, SerializedConfig, UtilityValuesCallback, CompilerOptions, Compiler, ProjectCallbacks, ProjectHooks } from '@pandacss/compiler-shared';
|
|
2
2
|
export * from '@pandacss/compiler-shared';
|
|
3
3
|
export { createUsageReport, mergeCallbacks } from '@pandacss/compiler-shared';
|
|
4
4
|
|
|
@@ -114,7 +114,7 @@ declare class WasmCompiler {
|
|
|
114
114
|
/** Per-file view, or `null` when `path` isn't known. */
|
|
115
115
|
getFile(path: string): ParsedFileView | null;
|
|
116
116
|
staticPatternAtoms(): StaticPatternResult;
|
|
117
|
-
serializeBuildInfo(panda: string): BuildInfoArtifact;
|
|
117
|
+
serializeBuildInfo(panda: string, designSystemDependencies?: BuildInfoDesignSystemDependency[]): BuildInfoArtifact;
|
|
118
118
|
applyBuildInfo(name: string, buildInfo: BuildInfoArtifact, only?: string[]): boolean;
|
|
119
119
|
buildInfoSchemaVersion(): number;
|
|
120
120
|
configFingerprint(): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/compiler-wasm",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.19",
|
|
4
4
|
"description": "WebAssembly binding for the Panda compiler engine (browser/playground target)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
"pkg-web"
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@pandacss/compiler-shared": "2.0.0-beta.
|
|
42
|
-
"@pandacss/types": "2.0.0-beta.
|
|
41
|
+
"@pandacss/compiler-shared": "2.0.0-beta.19",
|
|
42
|
+
"@pandacss/types": "2.0.0-beta.19"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@pandacss/config": "2.0.0-beta.
|
|
45
|
+
"@pandacss/config": "2.0.0-beta.19"
|
|
46
46
|
},
|
|
47
47
|
"engines": {
|
|
48
48
|
"node": ">=22"
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
"build:js": "tsup",
|
|
53
53
|
"build:fast": "tsup --no-dts",
|
|
54
54
|
"build:wasm": "tsx build-wasm.ts",
|
|
55
|
+
"verify:package": "node verify-package.mjs",
|
|
55
56
|
"dev": "pnpm build:fast --watch",
|
|
56
57
|
"test": "vitest run"
|
|
57
58
|
}
|
|
@@ -130,23 +130,14 @@ export class WasmCompiler {
|
|
|
130
130
|
static fromConfig(fs: WasmFileSystem, config: any, options: any): WasmCompiler;
|
|
131
131
|
/**
|
|
132
132
|
* Generate artifacts affected by the provided config dependency names.
|
|
133
|
-
*
|
|
134
|
-
* # Errors
|
|
135
|
-
* Returns a JS error if dependencies/options are invalid or serializing fails.
|
|
136
133
|
*/
|
|
137
134
|
generateAffectedArtifacts(dependencies: any, options: any): any;
|
|
138
135
|
/**
|
|
139
136
|
* Generate one codegen artifact by id.
|
|
140
|
-
*
|
|
141
|
-
* # Errors
|
|
142
|
-
* Returns a JS error if the id/options are invalid or serializing fails.
|
|
143
137
|
*/
|
|
144
138
|
generateArtifact(id: string, options: any): any;
|
|
145
139
|
/**
|
|
146
140
|
* Generate every codegen artifact from the resolved project state.
|
|
147
|
-
*
|
|
148
|
-
* # Errors
|
|
149
|
-
* Returns a JS error if options are invalid or serializing fails.
|
|
150
141
|
*/
|
|
151
142
|
generateArtifacts(options: any): any;
|
|
152
143
|
/**
|
|
@@ -289,7 +280,7 @@ export class WasmCompiler {
|
|
|
289
280
|
* # Errors
|
|
290
281
|
* Returns a JS error if serializing the build info fails.
|
|
291
282
|
*/
|
|
292
|
-
serializeBuildInfo(panda: string): any;
|
|
283
|
+
serializeBuildInfo(panda: string, dependencies: any): any;
|
|
293
284
|
/**
|
|
294
285
|
* Every `sva()` slot-recipe entry.
|
|
295
286
|
*
|
|
@@ -349,9 +340,6 @@ export class WasmCompiler {
|
|
|
349
340
|
tokenDictionary(): any;
|
|
350
341
|
/**
|
|
351
342
|
* Generate artifacts and write them under `outdir`.
|
|
352
|
-
*
|
|
353
|
-
* # Errors
|
|
354
|
-
* Returns a JS error if writing or serializing fails.
|
|
355
343
|
*/
|
|
356
344
|
writeArtifacts(options: any): any;
|
|
357
345
|
writeCss(options: any): any;
|
|
@@ -386,9 +386,6 @@ class WasmCompiler {
|
|
|
386
386
|
}
|
|
387
387
|
/**
|
|
388
388
|
* Generate artifacts affected by the provided config dependency names.
|
|
389
|
-
*
|
|
390
|
-
* # Errors
|
|
391
|
-
* Returns a JS error if dependencies/options are invalid or serializing fails.
|
|
392
389
|
* @param {any} dependencies
|
|
393
390
|
* @param {any} options
|
|
394
391
|
* @returns {any}
|
|
@@ -411,9 +408,6 @@ class WasmCompiler {
|
|
|
411
408
|
}
|
|
412
409
|
/**
|
|
413
410
|
* Generate one codegen artifact by id.
|
|
414
|
-
*
|
|
415
|
-
* # Errors
|
|
416
|
-
* Returns a JS error if the id/options are invalid or serializing fails.
|
|
417
411
|
* @param {string} id
|
|
418
412
|
* @param {any} options
|
|
419
413
|
* @returns {any}
|
|
@@ -438,9 +432,6 @@ class WasmCompiler {
|
|
|
438
432
|
}
|
|
439
433
|
/**
|
|
440
434
|
* Generate every codegen artifact from the resolved project state.
|
|
441
|
-
*
|
|
442
|
-
* # Errors
|
|
443
|
-
* Returns a JS error if options are invalid or serializing fails.
|
|
444
435
|
* @param {any} options
|
|
445
436
|
* @returns {any}
|
|
446
437
|
*/
|
|
@@ -956,14 +947,15 @@ class WasmCompiler {
|
|
|
956
947
|
* # Errors
|
|
957
948
|
* Returns a JS error if serializing the build info fails.
|
|
958
949
|
* @param {string} panda
|
|
950
|
+
* @param {any} dependencies
|
|
959
951
|
* @returns {any}
|
|
960
952
|
*/
|
|
961
|
-
serializeBuildInfo(panda) {
|
|
953
|
+
serializeBuildInfo(panda, dependencies) {
|
|
962
954
|
try {
|
|
963
955
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
964
956
|
const ptr0 = passStringToWasm0(panda, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
965
957
|
const len0 = WASM_VECTOR_LEN;
|
|
966
|
-
wasm.wasmcompiler_serializeBuildInfo(retptr, this.__wbg_ptr, ptr0, len0);
|
|
958
|
+
wasm.wasmcompiler_serializeBuildInfo(retptr, this.__wbg_ptr, ptr0, len0, addHeapObject(dependencies));
|
|
967
959
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
968
960
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
969
961
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -1182,9 +1174,6 @@ class WasmCompiler {
|
|
|
1182
1174
|
}
|
|
1183
1175
|
/**
|
|
1184
1176
|
* Generate artifacts and write them under `outdir`.
|
|
1185
|
-
*
|
|
1186
|
-
* # Errors
|
|
1187
|
-
* Returns a JS error if writing or serializing fails.
|
|
1188
1177
|
* @param {any} options
|
|
1189
1178
|
* @returns {any}
|
|
1190
1179
|
*/
|
|
@@ -1688,10 +1677,6 @@ function __wbg_get_imports() {
|
|
|
1688
1677
|
const ret = getObject(arg0).next();
|
|
1689
1678
|
return addHeapObject(ret);
|
|
1690
1679
|
}, arguments); },
|
|
1691
|
-
__wbg_parse_2c1cad6215e84999: function() { return handleError(function (arg0, arg1) {
|
|
1692
|
-
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
1693
|
-
return addHeapObject(ret);
|
|
1694
|
-
}, arguments); },
|
|
1695
1680
|
__wbg_prototypesetcall_5f9bdc8d75e07276: function(arg0, arg1, arg2) {
|
|
1696
1681
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
1697
1682
|
},
|
|
@@ -1722,7 +1707,7 @@ function __wbg_get_imports() {
|
|
|
1722
1707
|
},
|
|
1723
1708
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1724
1709
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [String], shim_idx: 12, ret: Externref, inner_ret: Some(Externref) }, mutable: false }) -> Externref`.
|
|
1725
|
-
const ret = makeClosure(arg0, arg1,
|
|
1710
|
+
const ret = makeClosure(arg0, arg1, __wasm_bindgen_func_elem_512);
|
|
1726
1711
|
return addHeapObject(ret);
|
|
1727
1712
|
},
|
|
1728
1713
|
__wbindgen_cast_0000000000000002: function(arg0) {
|
|
@@ -1759,10 +1744,10 @@ function __wbg_get_imports() {
|
|
|
1759
1744
|
};
|
|
1760
1745
|
}
|
|
1761
1746
|
|
|
1762
|
-
function
|
|
1747
|
+
function __wasm_bindgen_func_elem_512(arg0, arg1, arg2) {
|
|
1763
1748
|
const ptr0 = passStringToWasm0(arg2, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1764
1749
|
const len0 = WASM_VECTOR_LEN;
|
|
1765
|
-
const ret = wasm.
|
|
1750
|
+
const ret = wasm.__wasm_bindgen_func_elem_512(arg0, arg1, ptr0, len0);
|
|
1766
1751
|
return takeObject(ret);
|
|
1767
1752
|
}
|
|
1768
1753
|
|
|
Binary file
|
|
@@ -48,7 +48,7 @@ export const wasmcompiler_removeFile: (a: number, b: number, c: number) => numbe
|
|
|
48
48
|
export const wasmcompiler_resolvePath: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
49
49
|
export const wasmcompiler_resolveUtilityValue: (a: number, b: number, c: number) => void;
|
|
50
50
|
export const wasmcompiler_scan: (a: number, b: number, c: number) => void;
|
|
51
|
-
export const wasmcompiler_serializeBuildInfo: (a: number, b: number, c: number, d: number) => void;
|
|
51
|
+
export const wasmcompiler_serializeBuildInfo: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
52
52
|
export const wasmcompiler_slotRecipes: (a: number, b: number) => void;
|
|
53
53
|
export const wasmcompiler_sources: (a: number, b: number) => void;
|
|
54
54
|
export const wasmcompiler_spec: (a: number, b: number) => void;
|
|
@@ -71,7 +71,7 @@ export const wasmfilesystem_new: () => number;
|
|
|
71
71
|
export const wasmfilesystem_readFile: (a: number, b: number, c: number, d: number) => void;
|
|
72
72
|
export const wasmfilesystem_removeFile: (a: number, b: number, c: number) => number;
|
|
73
73
|
export const installPanicHook: () => void;
|
|
74
|
-
export const
|
|
74
|
+
export const __wasm_bindgen_func_elem_512: (a: number, b: number, c: number, d: number) => number;
|
|
75
75
|
export const __wbindgen_export: (a: number, b: number) => number;
|
|
76
76
|
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
77
77
|
export const __wbindgen_export3: (a: number) => void;
|
|
@@ -130,23 +130,14 @@ export class WasmCompiler {
|
|
|
130
130
|
static fromConfig(fs: WasmFileSystem, config: any, options: any): WasmCompiler;
|
|
131
131
|
/**
|
|
132
132
|
* Generate artifacts affected by the provided config dependency names.
|
|
133
|
-
*
|
|
134
|
-
* # Errors
|
|
135
|
-
* Returns a JS error if dependencies/options are invalid or serializing fails.
|
|
136
133
|
*/
|
|
137
134
|
generateAffectedArtifacts(dependencies: any, options: any): any;
|
|
138
135
|
/**
|
|
139
136
|
* Generate one codegen artifact by id.
|
|
140
|
-
*
|
|
141
|
-
* # Errors
|
|
142
|
-
* Returns a JS error if the id/options are invalid or serializing fails.
|
|
143
137
|
*/
|
|
144
138
|
generateArtifact(id: string, options: any): any;
|
|
145
139
|
/**
|
|
146
140
|
* Generate every codegen artifact from the resolved project state.
|
|
147
|
-
*
|
|
148
|
-
* # Errors
|
|
149
|
-
* Returns a JS error if options are invalid or serializing fails.
|
|
150
141
|
*/
|
|
151
142
|
generateArtifacts(options: any): any;
|
|
152
143
|
/**
|
|
@@ -289,7 +280,7 @@ export class WasmCompiler {
|
|
|
289
280
|
* # Errors
|
|
290
281
|
* Returns a JS error if serializing the build info fails.
|
|
291
282
|
*/
|
|
292
|
-
serializeBuildInfo(panda: string): any;
|
|
283
|
+
serializeBuildInfo(panda: string, dependencies: any): any;
|
|
293
284
|
/**
|
|
294
285
|
* Every `sva()` slot-recipe entry.
|
|
295
286
|
*
|
|
@@ -349,9 +340,6 @@ export class WasmCompiler {
|
|
|
349
340
|
tokenDictionary(): any;
|
|
350
341
|
/**
|
|
351
342
|
* Generate artifacts and write them under `outdir`.
|
|
352
|
-
*
|
|
353
|
-
* # Errors
|
|
354
|
-
* Returns a JS error if writing or serializing fails.
|
|
355
343
|
*/
|
|
356
344
|
writeArtifacts(options: any): any;
|
|
357
345
|
writeCss(options: any): any;
|
|
@@ -482,7 +470,7 @@ export interface InitOutput {
|
|
|
482
470
|
readonly wasmcompiler_resolvePath: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
483
471
|
readonly wasmcompiler_resolveUtilityValue: (a: number, b: number, c: number) => void;
|
|
484
472
|
readonly wasmcompiler_scan: (a: number, b: number, c: number) => void;
|
|
485
|
-
readonly wasmcompiler_serializeBuildInfo: (a: number, b: number, c: number, d: number) => void;
|
|
473
|
+
readonly wasmcompiler_serializeBuildInfo: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
486
474
|
readonly wasmcompiler_slotRecipes: (a: number, b: number) => void;
|
|
487
475
|
readonly wasmcompiler_sources: (a: number, b: number) => void;
|
|
488
476
|
readonly wasmcompiler_spec: (a: number, b: number) => void;
|
|
@@ -505,7 +493,7 @@ export interface InitOutput {
|
|
|
505
493
|
readonly wasmfilesystem_readFile: (a: number, b: number, c: number, d: number) => void;
|
|
506
494
|
readonly wasmfilesystem_removeFile: (a: number, b: number, c: number) => number;
|
|
507
495
|
readonly installPanicHook: () => void;
|
|
508
|
-
readonly
|
|
496
|
+
readonly __wasm_bindgen_func_elem_512: (a: number, b: number, c: number, d: number) => number;
|
|
509
497
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
510
498
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
511
499
|
readonly __wbindgen_export3: (a: number) => void;
|
package/pkg-web/compiler_wasm.js
CHANGED
|
@@ -386,9 +386,6 @@ export class WasmCompiler {
|
|
|
386
386
|
}
|
|
387
387
|
/**
|
|
388
388
|
* Generate artifacts affected by the provided config dependency names.
|
|
389
|
-
*
|
|
390
|
-
* # Errors
|
|
391
|
-
* Returns a JS error if dependencies/options are invalid or serializing fails.
|
|
392
389
|
* @param {any} dependencies
|
|
393
390
|
* @param {any} options
|
|
394
391
|
* @returns {any}
|
|
@@ -411,9 +408,6 @@ export class WasmCompiler {
|
|
|
411
408
|
}
|
|
412
409
|
/**
|
|
413
410
|
* Generate one codegen artifact by id.
|
|
414
|
-
*
|
|
415
|
-
* # Errors
|
|
416
|
-
* Returns a JS error if the id/options are invalid or serializing fails.
|
|
417
411
|
* @param {string} id
|
|
418
412
|
* @param {any} options
|
|
419
413
|
* @returns {any}
|
|
@@ -438,9 +432,6 @@ export class WasmCompiler {
|
|
|
438
432
|
}
|
|
439
433
|
/**
|
|
440
434
|
* Generate every codegen artifact from the resolved project state.
|
|
441
|
-
*
|
|
442
|
-
* # Errors
|
|
443
|
-
* Returns a JS error if options are invalid or serializing fails.
|
|
444
435
|
* @param {any} options
|
|
445
436
|
* @returns {any}
|
|
446
437
|
*/
|
|
@@ -956,14 +947,15 @@ export class WasmCompiler {
|
|
|
956
947
|
* # Errors
|
|
957
948
|
* Returns a JS error if serializing the build info fails.
|
|
958
949
|
* @param {string} panda
|
|
950
|
+
* @param {any} dependencies
|
|
959
951
|
* @returns {any}
|
|
960
952
|
*/
|
|
961
|
-
serializeBuildInfo(panda) {
|
|
953
|
+
serializeBuildInfo(panda, dependencies) {
|
|
962
954
|
try {
|
|
963
955
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
964
956
|
const ptr0 = passStringToWasm0(panda, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
965
957
|
const len0 = WASM_VECTOR_LEN;
|
|
966
|
-
wasm.wasmcompiler_serializeBuildInfo(retptr, this.__wbg_ptr, ptr0, len0);
|
|
958
|
+
wasm.wasmcompiler_serializeBuildInfo(retptr, this.__wbg_ptr, ptr0, len0, addHeapObject(dependencies));
|
|
967
959
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
968
960
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
969
961
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -1182,9 +1174,6 @@ export class WasmCompiler {
|
|
|
1182
1174
|
}
|
|
1183
1175
|
/**
|
|
1184
1176
|
* Generate artifacts and write them under `outdir`.
|
|
1185
|
-
*
|
|
1186
|
-
* # Errors
|
|
1187
|
-
* Returns a JS error if writing or serializing fails.
|
|
1188
1177
|
* @param {any} options
|
|
1189
1178
|
* @returns {any}
|
|
1190
1179
|
*/
|
|
@@ -1684,10 +1673,6 @@ function __wbg_get_imports() {
|
|
|
1684
1673
|
const ret = getObject(arg0).next();
|
|
1685
1674
|
return addHeapObject(ret);
|
|
1686
1675
|
}, arguments); },
|
|
1687
|
-
__wbg_parse_2c1cad6215e84999: function() { return handleError(function (arg0, arg1) {
|
|
1688
|
-
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
1689
|
-
return addHeapObject(ret);
|
|
1690
|
-
}, arguments); },
|
|
1691
1676
|
__wbg_prototypesetcall_5f9bdc8d75e07276: function(arg0, arg1, arg2) {
|
|
1692
1677
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
1693
1678
|
},
|
|
@@ -1718,7 +1703,7 @@ function __wbg_get_imports() {
|
|
|
1718
1703
|
},
|
|
1719
1704
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1720
1705
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [String], shim_idx: 12, ret: Externref, inner_ret: Some(Externref) }, mutable: false }) -> Externref`.
|
|
1721
|
-
const ret = makeClosure(arg0, arg1,
|
|
1706
|
+
const ret = makeClosure(arg0, arg1, __wasm_bindgen_func_elem_512);
|
|
1722
1707
|
return addHeapObject(ret);
|
|
1723
1708
|
},
|
|
1724
1709
|
__wbindgen_cast_0000000000000002: function(arg0) {
|
|
@@ -1755,10 +1740,10 @@ function __wbg_get_imports() {
|
|
|
1755
1740
|
};
|
|
1756
1741
|
}
|
|
1757
1742
|
|
|
1758
|
-
function
|
|
1743
|
+
function __wasm_bindgen_func_elem_512(arg0, arg1, arg2) {
|
|
1759
1744
|
const ptr0 = passStringToWasm0(arg2, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1760
1745
|
const len0 = WASM_VECTOR_LEN;
|
|
1761
|
-
const ret = wasm.
|
|
1746
|
+
const ret = wasm.__wasm_bindgen_func_elem_512(arg0, arg1, ptr0, len0);
|
|
1762
1747
|
return takeObject(ret);
|
|
1763
1748
|
}
|
|
1764
1749
|
|
|
Binary file
|
|
@@ -48,7 +48,7 @@ export const wasmcompiler_removeFile: (a: number, b: number, c: number) => numbe
|
|
|
48
48
|
export const wasmcompiler_resolvePath: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
49
49
|
export const wasmcompiler_resolveUtilityValue: (a: number, b: number, c: number) => void;
|
|
50
50
|
export const wasmcompiler_scan: (a: number, b: number, c: number) => void;
|
|
51
|
-
export const wasmcompiler_serializeBuildInfo: (a: number, b: number, c: number, d: number) => void;
|
|
51
|
+
export const wasmcompiler_serializeBuildInfo: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
52
52
|
export const wasmcompiler_slotRecipes: (a: number, b: number) => void;
|
|
53
53
|
export const wasmcompiler_sources: (a: number, b: number) => void;
|
|
54
54
|
export const wasmcompiler_spec: (a: number, b: number) => void;
|
|
@@ -71,7 +71,7 @@ export const wasmfilesystem_new: () => number;
|
|
|
71
71
|
export const wasmfilesystem_readFile: (a: number, b: number, c: number, d: number) => void;
|
|
72
72
|
export const wasmfilesystem_removeFile: (a: number, b: number, c: number) => number;
|
|
73
73
|
export const installPanicHook: () => void;
|
|
74
|
-
export const
|
|
74
|
+
export const __wasm_bindgen_func_elem_512: (a: number, b: number, c: number, d: number) => number;
|
|
75
75
|
export const __wbindgen_export: (a: number, b: number) => number;
|
|
76
76
|
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
77
77
|
export const __wbindgen_export3: (a: number) => void;
|