@pandacss/config 2.0.0-beta.15 → 2.0.0-beta.17

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.
@@ -14,7 +14,6 @@ var sectionKeySet = /* @__PURE__ */ new Set([
14
14
  "globalCss",
15
15
  "globalVars",
16
16
  "globalFontface",
17
- "globalPositionTry",
18
17
  "staticCss",
19
18
  "themes"
20
19
  ]);
@@ -107,7 +106,6 @@ var sectionKeys = [
107
106
  "globalCss",
108
107
  "globalVars",
109
108
  "globalFontface",
110
- "globalPositionTry",
111
109
  "staticCss",
112
110
  "themes"
113
111
  ];
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  mergeConfigs,
3
3
  mergeConfigsWithSources
4
- } from "./chunk-MDHADX5P.js";
4
+ } from "./chunk-LESQDSAI.js";
5
5
  import {
6
6
  collectPluginHookHandlers,
7
7
  createConfigSnapshot,
@@ -25,7 +25,7 @@ import { existsSync, realpathSync } from "fs";
25
25
  import { mkdir, unlink, writeFile } from "fs/promises";
26
26
  import { builtinModules } from "module";
27
27
  import { tmpdir } from "os";
28
- import { dirname, isAbsolute as isAbsolute2, join, normalize, relative } from "path";
28
+ import { basename, dirname, isAbsolute as isAbsolute2, join, normalize, relative } from "path";
29
29
  import { pathToFileURL as pathToFileURL2 } from "url";
30
30
 
31
31
  // src/bundle-plugins.ts
@@ -105,6 +105,7 @@ async function bundleConfig(filepath, cwd) {
105
105
  }
106
106
  async function loadBundledModule(filepath, code) {
107
107
  const target = tempTargetFor(filepath);
108
+ let evalError;
108
109
  if (target) {
109
110
  try {
110
111
  await mkdir(dirname(target), { recursive: true });
@@ -117,14 +118,23 @@ async function loadBundledModule(filepath, code) {
117
118
  } finally {
118
119
  void unlink(target).catch(() => void 0);
119
120
  }
120
- } catch {
121
+ } catch (error) {
122
+ if (!isUnresolvedTempModule(error, target)) evalError = error;
121
123
  }
122
124
  }
123
125
  const dataUrl = `data:text/javascript;base64,${Buffer.from(code).toString("base64")}`;
124
- return await import(
125
- /* @vite-ignore */
126
- dataUrl
127
- );
126
+ try {
127
+ return await import(
128
+ /* @vite-ignore */
129
+ dataUrl
130
+ );
131
+ } catch (error) {
132
+ throw evalError ?? error;
133
+ }
134
+ }
135
+ function isUnresolvedTempModule(error, target) {
136
+ const message = error instanceof Error ? error.message : "";
137
+ return message.includes("Cannot find module") && message.includes(basename(target));
128
138
  }
129
139
  function tempTargetFor(filepath) {
130
140
  const unique = `${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`;
@@ -373,7 +383,6 @@ var RUNTIME_OPTION_KEYS = [
373
383
  "jsxFramework",
374
384
  "jsxFactory",
375
385
  "jsxStyleProps",
376
- "syntax",
377
386
  "strictTokens",
378
387
  "strictPropertyValues",
379
388
  "shorthands"
@@ -1453,7 +1462,6 @@ var ALL_DEPENDENCIES = [
1453
1462
  "prefix",
1454
1463
  "recipes",
1455
1464
  "separator",
1456
- "syntax",
1457
1465
  "themes",
1458
1466
  "tokens",
1459
1467
  "utilities"
@@ -1507,8 +1515,6 @@ function classify(path) {
1507
1515
  return { deps: ["patterns"], pattern: second };
1508
1516
  case "themes":
1509
1517
  return { deps: ["themes"] };
1510
- case "syntax":
1511
- return { deps: ["syntax"] };
1512
1518
  case "hash":
1513
1519
  return { deps: ["hash"] };
1514
1520
  case "prefix":
package/dist/merge.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  mergeConfigs,
3
3
  mergeConfigsWithSources
4
- } from "./chunk-MDHADX5P.js";
4
+ } from "./chunk-LESQDSAI.js";
5
5
  import "./chunk-R4R5RHIS.js";
6
6
  export {
7
7
  mergeConfigs,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/config",
3
- "version": "2.0.0-beta.15",
3
+ "version": "2.0.0-beta.17",
4
4
  "description": "Self-contained loader that bundles and serializes a Panda config for the Rust compiler",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -39,14 +39,14 @@
39
39
  "dist"
40
40
  ],
41
41
  "dependencies": {
42
+ "@pandacss/compiler-shared": "2.0.0-beta.17",
43
+ "@pandacss/types": "2.0.0-beta.17",
42
44
  "acorn": "^8.17.0",
43
45
  "acorn-walk": "^8.3.5",
44
46
  "javascript-stringify": "2.1.0",
45
47
  "magic-string": "^0.30.21",
46
48
  "microdiff": "1.5.0",
47
- "rolldown": "1.0.0-rc.17",
48
- "@pandacss/compiler-shared": "2.0.0-beta.15",
49
- "@pandacss/types": "2.0.0-beta.15"
49
+ "rolldown": "1.2.7"
50
50
  },
51
51
  "engines": {
52
52
  "node": ">=22"