@pandacss/compiler-wasm 2.0.0-beta.0 → 2.0.0-beta.2

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 CHANGED
@@ -1,4 +1,4 @@
1
- import { ParseFileReport, ScanOptions, LayerNames, Spec, SourceEntry, FileInspectionResult, GenerateArtifactOptions, CompileOptions, WriteCssResult, WriteFilesResult, SerializedHookFilter, Atom, RecipeEntry, EncodedRecipeStyles, ProjectSummary, CompileOutput, StylesheetLayerName, CssFile, CodegenArtifact, CodegenArtifactId, CodegenDependency, Diagnostic, CompileFileManifest, ParsedFileView, StaticPatternResult, BuildInfo, SerializedConfig, CompilerOptions, Compiler, ProjectCallbacks, ProjectHooks, ConfigSnapshot, Driver } from '@pandacss/compiler-shared';
1
+ import { ParseFileReport, ScanOptions, LayerNames, Spec, SourceEntry, FileInspectionResult, ResolveUtilityValueInput, ResolvedUtilityValue, WriteArtifactsOptions, WriteCssOptions, WriteCssResult, WriteSplitCssOptions, WriteFilesResult, SerializedHookFilter, Atom, RecipeEntry, EncodedRecipeStyles, ProjectSummary, CompileOptions, CompileOutput, StylesheetLayerName, CssFile, GenerateArtifactOptions, CodegenArtifact, CodegenArtifactId, CodegenDependency, Diagnostic, CompileFileManifest, ParsedFileView, StaticPatternResult, BuildInfo, SerializedConfig, CompilerOptions, Compiler, ProjectCallbacks, ProjectHooks, ConfigSnapshot, Driver } from '@pandacss/compiler-shared';
2
2
  export * from '@pandacss/compiler-shared';
3
3
  export { PatternHelpers, mergeCallbacks } from '@pandacss/compiler-shared';
4
4
 
@@ -87,9 +87,10 @@ declare class WasmCompiler {
87
87
  spec(): Spec;
88
88
  sources(): SourceEntry[];
89
89
  inspectFileSource(path: string, source: string): FileInspectionResult;
90
- writeArtifacts(outdir: string, cwd?: string, options?: GenerateArtifactOptions): string[];
91
- writeCss(outfile: string, cwd?: string, options?: CompileOptions): WriteCssResult;
92
- writeSplitCss(outdir: string, cwd?: string): WriteFilesResult;
90
+ resolveUtilityValue(input: ResolveUtilityValueInput): ResolvedUtilityValue | null;
91
+ writeArtifacts(options: WriteArtifactsOptions): string[];
92
+ writeCss(options: WriteCssOptions): WriteCssResult;
93
+ writeSplitCss(options: WriteSplitCssOptions): WriteFilesResult;
93
94
  isEmpty(): boolean;
94
95
  registerUtilityTransform?(id: string, callback: (resolved: unknown, original: unknown) => unknown): void;
95
96
  registerPatternTransform?(id: string, callback: (props: unknown, helpers: Record<string, unknown>) => unknown): void;
package/dist/web.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ParseFileReport, ScanOptions, LayerNames, Spec, SourceEntry, FileInspectionResult, GenerateArtifactOptions, CompileOptions, WriteCssResult, WriteFilesResult, SerializedHookFilter, Atom, RecipeEntry, EncodedRecipeStyles, ProjectSummary, CompileOutput, StylesheetLayerName, CssFile, CodegenArtifact, CodegenArtifactId, CodegenDependency, Diagnostic, CompileFileManifest, ParsedFileView, StaticPatternResult, BuildInfo, SerializedConfig, CompilerOptions, Compiler, ProjectCallbacks, ProjectHooks } from '@pandacss/compiler-shared';
1
+ import { ParseFileReport, ScanOptions, LayerNames, Spec, SourceEntry, FileInspectionResult, ResolveUtilityValueInput, ResolvedUtilityValue, WriteArtifactsOptions, WriteCssOptions, WriteCssResult, WriteSplitCssOptions, WriteFilesResult, SerializedHookFilter, Atom, RecipeEntry, EncodedRecipeStyles, ProjectSummary, CompileOptions, CompileOutput, StylesheetLayerName, CssFile, GenerateArtifactOptions, CodegenArtifact, CodegenArtifactId, CodegenDependency, Diagnostic, CompileFileManifest, ParsedFileView, StaticPatternResult, BuildInfo, SerializedConfig, CompilerOptions, Compiler, ProjectCallbacks, ProjectHooks } from '@pandacss/compiler-shared';
2
2
  export * from '@pandacss/compiler-shared';
3
3
  export { PatternHelpers, mergeCallbacks } from '@pandacss/compiler-shared';
4
4
 
@@ -87,9 +87,10 @@ declare class WasmCompiler {
87
87
  spec(): Spec;
88
88
  sources(): SourceEntry[];
89
89
  inspectFileSource(path: string, source: string): FileInspectionResult;
90
- writeArtifacts(outdir: string, cwd?: string, options?: GenerateArtifactOptions): string[];
91
- writeCss(outfile: string, cwd?: string, options?: CompileOptions): WriteCssResult;
92
- writeSplitCss(outdir: string, cwd?: string): WriteFilesResult;
90
+ resolveUtilityValue(input: ResolveUtilityValueInput): ResolvedUtilityValue | null;
91
+ writeArtifacts(options: WriteArtifactsOptions): string[];
92
+ writeCss(options: WriteCssOptions): WriteCssResult;
93
+ writeSplitCss(options: WriteSplitCssOptions): WriteFilesResult;
93
94
  isEmpty(): boolean;
94
95
  registerUtilityTransform?(id: string, callback: (resolved: unknown, original: unknown) => unknown): void;
95
96
  registerPatternTransform?(id: string, callback: (props: unknown, helpers: Record<string, unknown>) => unknown): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/compiler-wasm",
3
- "version": "2.0.0-beta.0",
3
+ "version": "2.0.0-beta.2",
4
4
  "description": "WebAssembly binding for the Panda compiler engine (browser/playground target)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -38,10 +38,13 @@
38
38
  "pkg-web"
39
39
  ],
40
40
  "dependencies": {
41
- "@pandacss/compiler-shared": "2.0.0-beta.0"
41
+ "@pandacss/compiler-shared": "2.0.0-beta.2"
42
42
  },
43
43
  "devDependencies": {
44
- "@pandacss/config": "2.0.0-beta.0"
44
+ "@pandacss/config": "2.0.0-beta.2"
45
+ },
46
+ "engines": {
47
+ "node": ">=22"
45
48
  },
46
49
  "scripts": {
47
50
  "build": "pnpm build:wasm && pnpm build:js",
@@ -231,6 +231,13 @@ export class WasmCompiler {
231
231
  */
232
232
  removeFile(path: string): boolean;
233
233
  resolvePath(path: string, cwd?: string | null): string;
234
+ /**
235
+ * Resolve selector and CSS metadata for one utility value.
236
+ *
237
+ * # Errors
238
+ * Returns a JS error if the input or result cannot be serialized.
239
+ */
240
+ resolveUtilityValue(input: any): any;
234
241
  /**
235
242
  * Source paths matching the config's `include`/`exclude` (overridable via
236
243
  * `options`) from the in-memory filesystem. For discovery and the host's
@@ -303,9 +310,9 @@ export class WasmCompiler {
303
310
  * # Errors
304
311
  * Returns a JS error if a file fails to write or results fail to serialize.
305
312
  */
306
- writeArtifacts(outdir: string, cwd: string | null | undefined, options: any): any;
307
- writeCss(outfile: string, cwd?: string | null, options?: any | null): any;
308
- writeSplitCss(outdir: string, cwd?: string | null): any;
313
+ writeArtifacts(options: any): any;
314
+ writeCss(options: any): any;
315
+ writeSplitCss(options: any): any;
309
316
  }
310
317
 
311
318
  /**
@@ -788,6 +788,29 @@ class WasmCompiler {
788
788
  wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
789
789
  }
790
790
  }
791
+ /**
792
+ * Resolve selector and CSS metadata for one utility value.
793
+ *
794
+ * # Errors
795
+ * Returns a JS error if the input or result cannot be serialized.
796
+ * @param {any} input
797
+ * @returns {any}
798
+ */
799
+ resolveUtilityValue(input) {
800
+ try {
801
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
802
+ wasm.wasmcompiler_resolveUtilityValue(retptr, this.__wbg_ptr, addHeapObject(input));
803
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
804
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
805
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
806
+ if (r2) {
807
+ throw takeObject(r1);
808
+ }
809
+ return takeObject(r0);
810
+ } finally {
811
+ wasm.__wbindgen_add_to_stack_pointer(16);
812
+ }
813
+ }
791
814
  /**
792
815
  * Source paths matching the config's `include`/`exclude` (overridable via
793
816
  * `options`) from the in-memory filesystem. For discovery and the host's
@@ -998,19 +1021,13 @@ class WasmCompiler {
998
1021
  *
999
1022
  * # Errors
1000
1023
  * Returns a JS error if a file fails to write or results fail to serialize.
1001
- * @param {string} outdir
1002
- * @param {string | null | undefined} cwd
1003
1024
  * @param {any} options
1004
1025
  * @returns {any}
1005
1026
  */
1006
- writeArtifacts(outdir, cwd, options) {
1027
+ writeArtifacts(options) {
1007
1028
  try {
1008
1029
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1009
- const ptr0 = passStringToWasm0(outdir, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1010
- const len0 = WASM_VECTOR_LEN;
1011
- var ptr1 = isLikeNone(cwd) ? 0 : passStringToWasm0(cwd, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1012
- var len1 = WASM_VECTOR_LEN;
1013
- wasm.wasmcompiler_writeArtifacts(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, addBorrowedObject(options));
1030
+ wasm.wasmcompiler_writeArtifacts(retptr, this.__wbg_ptr, addHeapObject(options));
1014
1031
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1015
1032
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1016
1033
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -1020,23 +1037,16 @@ class WasmCompiler {
1020
1037
  return takeObject(r0);
1021
1038
  } finally {
1022
1039
  wasm.__wbindgen_add_to_stack_pointer(16);
1023
- heap[stack_pointer++] = undefined;
1024
1040
  }
1025
1041
  }
1026
1042
  /**
1027
- * @param {string} outfile
1028
- * @param {string | null} [cwd]
1029
- * @param {any | null} [options]
1043
+ * @param {any} options
1030
1044
  * @returns {any}
1031
1045
  */
1032
- writeCss(outfile, cwd, options) {
1046
+ writeCss(options) {
1033
1047
  try {
1034
1048
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1035
- const ptr0 = passStringToWasm0(outfile, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1036
- const len0 = WASM_VECTOR_LEN;
1037
- var ptr1 = isLikeNone(cwd) ? 0 : passStringToWasm0(cwd, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1038
- var len1 = WASM_VECTOR_LEN;
1039
- wasm.wasmcompiler_writeCss(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, isLikeNone(options) ? 0 : addHeapObject(options));
1049
+ wasm.wasmcompiler_writeCss(retptr, this.__wbg_ptr, addHeapObject(options));
1040
1050
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1041
1051
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1042
1052
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -1049,18 +1059,13 @@ class WasmCompiler {
1049
1059
  }
1050
1060
  }
1051
1061
  /**
1052
- * @param {string} outdir
1053
- * @param {string | null} [cwd]
1062
+ * @param {any} options
1054
1063
  * @returns {any}
1055
1064
  */
1056
- writeSplitCss(outdir, cwd) {
1065
+ writeSplitCss(options) {
1057
1066
  try {
1058
1067
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1059
- const ptr0 = passStringToWasm0(outdir, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1060
- const len0 = WASM_VECTOR_LEN;
1061
- var ptr1 = isLikeNone(cwd) ? 0 : passStringToWasm0(cwd, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1062
- var len1 = WASM_VECTOR_LEN;
1063
- wasm.wasmcompiler_writeSplitCss(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
1068
+ wasm.wasmcompiler_writeSplitCss(retptr, this.__wbg_ptr, addHeapObject(options));
1064
1069
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1065
1070
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1066
1071
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
Binary file
@@ -40,6 +40,7 @@ export const wasmcompiler_registerSourceTransform: (a: number, b: number, c: num
40
40
  export const wasmcompiler_registerUtilityTransform: (a: number, b: number, c: number, d: number) => void;
41
41
  export const wasmcompiler_removeFile: (a: number, b: number, c: number) => number;
42
42
  export const wasmcompiler_resolvePath: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
43
+ export const wasmcompiler_resolveUtilityValue: (a: number, b: number, c: number) => void;
43
44
  export const wasmcompiler_scan: (a: number, b: number, c: number) => void;
44
45
  export const wasmcompiler_serializeBuildInfo: (a: number, b: number, c: number, d: number) => void;
45
46
  export const wasmcompiler_slotRecipes: (a: number, b: number) => void;
@@ -49,9 +50,9 @@ export const wasmcompiler_splitCss: (a: number, b: number) => void;
49
50
  export const wasmcompiler_staticPatternAtoms: (a: number, b: number) => void;
50
51
  export const wasmcompiler_summary: (a: number, b: number) => void;
51
52
  export const wasmcompiler_token_dictionary: (a: number, b: number) => void;
52
- export const wasmcompiler_writeArtifacts: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
53
- export const wasmcompiler_writeCss: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
54
- export const wasmcompiler_writeSplitCss: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
53
+ export const wasmcompiler_writeArtifacts: (a: number, b: number, c: number) => void;
54
+ export const wasmcompiler_writeCss: (a: number, b: number, c: number) => void;
55
+ export const wasmcompiler_writeSplitCss: (a: number, b: number, c: number) => void;
55
56
  export const wasmextractor_new: (a: number, b: number, c: number) => void;
56
57
  export const wasmextractor_parseFile: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
57
58
  export const wasmfilesystem_addFile: (a: number, b: number, c: number, d: number, e: number) => void;
@@ -231,6 +231,13 @@ export class WasmCompiler {
231
231
  */
232
232
  removeFile(path: string): boolean;
233
233
  resolvePath(path: string, cwd?: string | null): string;
234
+ /**
235
+ * Resolve selector and CSS metadata for one utility value.
236
+ *
237
+ * # Errors
238
+ * Returns a JS error if the input or result cannot be serialized.
239
+ */
240
+ resolveUtilityValue(input: any): any;
234
241
  /**
235
242
  * Source paths matching the config's `include`/`exclude` (overridable via
236
243
  * `options`) from the in-memory filesystem. For discovery and the host's
@@ -303,9 +310,9 @@ export class WasmCompiler {
303
310
  * # Errors
304
311
  * Returns a JS error if a file fails to write or results fail to serialize.
305
312
  */
306
- writeArtifacts(outdir: string, cwd: string | null | undefined, options: any): any;
307
- writeCss(outfile: string, cwd?: string | null, options?: any | null): any;
308
- writeSplitCss(outdir: string, cwd?: string | null): any;
313
+ writeArtifacts(options: any): any;
314
+ writeCss(options: any): any;
315
+ writeSplitCss(options: any): any;
309
316
  }
310
317
 
311
318
  /**
@@ -423,6 +430,7 @@ export interface InitOutput {
423
430
  readonly wasmcompiler_registerUtilityTransform: (a: number, b: number, c: number, d: number) => void;
424
431
  readonly wasmcompiler_removeFile: (a: number, b: number, c: number) => number;
425
432
  readonly wasmcompiler_resolvePath: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
433
+ readonly wasmcompiler_resolveUtilityValue: (a: number, b: number, c: number) => void;
426
434
  readonly wasmcompiler_scan: (a: number, b: number, c: number) => void;
427
435
  readonly wasmcompiler_serializeBuildInfo: (a: number, b: number, c: number, d: number) => void;
428
436
  readonly wasmcompiler_slotRecipes: (a: number, b: number) => void;
@@ -432,9 +440,9 @@ export interface InitOutput {
432
440
  readonly wasmcompiler_staticPatternAtoms: (a: number, b: number) => void;
433
441
  readonly wasmcompiler_summary: (a: number, b: number) => void;
434
442
  readonly wasmcompiler_token_dictionary: (a: number, b: number) => void;
435
- readonly wasmcompiler_writeArtifacts: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
436
- readonly wasmcompiler_writeCss: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
437
- readonly wasmcompiler_writeSplitCss: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
443
+ readonly wasmcompiler_writeArtifacts: (a: number, b: number, c: number) => void;
444
+ readonly wasmcompiler_writeCss: (a: number, b: number, c: number) => void;
445
+ readonly wasmcompiler_writeSplitCss: (a: number, b: number, c: number) => void;
438
446
  readonly wasmextractor_new: (a: number, b: number, c: number) => void;
439
447
  readonly wasmextractor_parseFile: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
440
448
  readonly wasmfilesystem_addFile: (a: number, b: number, c: number, d: number, e: number) => void;
@@ -788,6 +788,29 @@ export class WasmCompiler {
788
788
  wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
789
789
  }
790
790
  }
791
+ /**
792
+ * Resolve selector and CSS metadata for one utility value.
793
+ *
794
+ * # Errors
795
+ * Returns a JS error if the input or result cannot be serialized.
796
+ * @param {any} input
797
+ * @returns {any}
798
+ */
799
+ resolveUtilityValue(input) {
800
+ try {
801
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
802
+ wasm.wasmcompiler_resolveUtilityValue(retptr, this.__wbg_ptr, addHeapObject(input));
803
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
804
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
805
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
806
+ if (r2) {
807
+ throw takeObject(r1);
808
+ }
809
+ return takeObject(r0);
810
+ } finally {
811
+ wasm.__wbindgen_add_to_stack_pointer(16);
812
+ }
813
+ }
791
814
  /**
792
815
  * Source paths matching the config's `include`/`exclude` (overridable via
793
816
  * `options`) from the in-memory filesystem. For discovery and the host's
@@ -998,19 +1021,13 @@ export class WasmCompiler {
998
1021
  *
999
1022
  * # Errors
1000
1023
  * Returns a JS error if a file fails to write or results fail to serialize.
1001
- * @param {string} outdir
1002
- * @param {string | null | undefined} cwd
1003
1024
  * @param {any} options
1004
1025
  * @returns {any}
1005
1026
  */
1006
- writeArtifacts(outdir, cwd, options) {
1027
+ writeArtifacts(options) {
1007
1028
  try {
1008
1029
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1009
- const ptr0 = passStringToWasm0(outdir, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1010
- const len0 = WASM_VECTOR_LEN;
1011
- var ptr1 = isLikeNone(cwd) ? 0 : passStringToWasm0(cwd, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1012
- var len1 = WASM_VECTOR_LEN;
1013
- wasm.wasmcompiler_writeArtifacts(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, addBorrowedObject(options));
1030
+ wasm.wasmcompiler_writeArtifacts(retptr, this.__wbg_ptr, addHeapObject(options));
1014
1031
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1015
1032
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1016
1033
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -1020,23 +1037,16 @@ export class WasmCompiler {
1020
1037
  return takeObject(r0);
1021
1038
  } finally {
1022
1039
  wasm.__wbindgen_add_to_stack_pointer(16);
1023
- heap[stack_pointer++] = undefined;
1024
1040
  }
1025
1041
  }
1026
1042
  /**
1027
- * @param {string} outfile
1028
- * @param {string | null} [cwd]
1029
- * @param {any | null} [options]
1043
+ * @param {any} options
1030
1044
  * @returns {any}
1031
1045
  */
1032
- writeCss(outfile, cwd, options) {
1046
+ writeCss(options) {
1033
1047
  try {
1034
1048
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1035
- const ptr0 = passStringToWasm0(outfile, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1036
- const len0 = WASM_VECTOR_LEN;
1037
- var ptr1 = isLikeNone(cwd) ? 0 : passStringToWasm0(cwd, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1038
- var len1 = WASM_VECTOR_LEN;
1039
- wasm.wasmcompiler_writeCss(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, isLikeNone(options) ? 0 : addHeapObject(options));
1049
+ wasm.wasmcompiler_writeCss(retptr, this.__wbg_ptr, addHeapObject(options));
1040
1050
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1041
1051
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1042
1052
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -1049,18 +1059,13 @@ export class WasmCompiler {
1049
1059
  }
1050
1060
  }
1051
1061
  /**
1052
- * @param {string} outdir
1053
- * @param {string | null} [cwd]
1062
+ * @param {any} options
1054
1063
  * @returns {any}
1055
1064
  */
1056
- writeSplitCss(outdir, cwd) {
1065
+ writeSplitCss(options) {
1057
1066
  try {
1058
1067
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1059
- const ptr0 = passStringToWasm0(outdir, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1060
- const len0 = WASM_VECTOR_LEN;
1061
- var ptr1 = isLikeNone(cwd) ? 0 : passStringToWasm0(cwd, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1062
- var len1 = WASM_VECTOR_LEN;
1063
- wasm.wasmcompiler_writeSplitCss(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
1068
+ wasm.wasmcompiler_writeSplitCss(retptr, this.__wbg_ptr, addHeapObject(options));
1064
1069
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1065
1070
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1066
1071
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
Binary file
@@ -40,6 +40,7 @@ export const wasmcompiler_registerSourceTransform: (a: number, b: number, c: num
40
40
  export const wasmcompiler_registerUtilityTransform: (a: number, b: number, c: number, d: number) => void;
41
41
  export const wasmcompiler_removeFile: (a: number, b: number, c: number) => number;
42
42
  export const wasmcompiler_resolvePath: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
43
+ export const wasmcompiler_resolveUtilityValue: (a: number, b: number, c: number) => void;
43
44
  export const wasmcompiler_scan: (a: number, b: number, c: number) => void;
44
45
  export const wasmcompiler_serializeBuildInfo: (a: number, b: number, c: number, d: number) => void;
45
46
  export const wasmcompiler_slotRecipes: (a: number, b: number) => void;
@@ -49,9 +50,9 @@ export const wasmcompiler_splitCss: (a: number, b: number) => void;
49
50
  export const wasmcompiler_staticPatternAtoms: (a: number, b: number) => void;
50
51
  export const wasmcompiler_summary: (a: number, b: number) => void;
51
52
  export const wasmcompiler_token_dictionary: (a: number, b: number) => void;
52
- export const wasmcompiler_writeArtifacts: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
53
- export const wasmcompiler_writeCss: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
54
- export const wasmcompiler_writeSplitCss: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
53
+ export const wasmcompiler_writeArtifacts: (a: number, b: number, c: number) => void;
54
+ export const wasmcompiler_writeCss: (a: number, b: number, c: number) => void;
55
+ export const wasmcompiler_writeSplitCss: (a: number, b: number, c: number) => void;
55
56
  export const wasmextractor_new: (a: number, b: number, c: number) => void;
56
57
  export const wasmextractor_parseFile: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
57
58
  export const wasmfilesystem_addFile: (a: number, b: number, c: number, d: number, e: number) => void;