@pandacss/config 0.0.0-dev-20230125112500 → 0.0.0-dev-20230125141042

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.js CHANGED
@@ -202,8 +202,11 @@ async function getResolvedConfig(config, cwd) {
202
202
  const presets = config.presets ?? [];
203
203
  const configs2 = await Promise.all(
204
204
  presets.slice().reverse().map(async (preset) => {
205
- const presetModule = await bundleAndRequire(preset, cwd);
206
- return getResolvedConfig(presetModule.config, cwd);
205
+ if (typeof preset === "string") {
206
+ const presetModule = await bundleAndRequire(preset, cwd);
207
+ return getResolvedConfig(presetModule.config, cwd);
208
+ } else
209
+ return getResolvedConfig(preset, cwd);
207
210
  })
208
211
  );
209
212
  delete config.presets;
package/dist/index.mjs CHANGED
@@ -176,8 +176,11 @@ async function getResolvedConfig(config, cwd) {
176
176
  const presets = config.presets ?? [];
177
177
  const configs2 = await Promise.all(
178
178
  presets.slice().reverse().map(async (preset) => {
179
- const presetModule = await bundleAndRequire(preset, cwd);
180
- return getResolvedConfig(presetModule.config, cwd);
179
+ if (typeof preset === "string") {
180
+ const presetModule = await bundleAndRequire(preset, cwd);
181
+ return getResolvedConfig(presetModule.config, cwd);
182
+ } else
183
+ return getResolvedConfig(preset, cwd);
181
184
  })
182
185
  );
183
186
  delete config.presets;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/config",
3
- "version": "0.0.0-dev-20230125112500",
3
+ "version": "0.0.0-dev-20230125141042",
4
4
  "description": "Find and load panda config",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -18,9 +18,9 @@
18
18
  "esbuild": "0.17.4",
19
19
  "escalade": "3.1.1",
20
20
  "node-eval": "2.0.0",
21
- "@pandacss/logger": "0.0.0-dev-20230125112500",
22
- "@pandacss/error": "0.0.0-dev-20230125112500",
23
- "@pandacss/types": "0.0.0-dev-20230125112500"
21
+ "@pandacss/logger": "0.0.0-dev-20230125141042",
22
+ "@pandacss/error": "0.0.0-dev-20230125141042",
23
+ "@pandacss/types": "0.0.0-dev-20230125141042"
24
24
  },
25
25
  "scripts": {
26
26
  "build": "pnpm tsup src/index.ts --format=esm,cjs --shims --dts",