@pikacss/integration 0.0.19 → 0.0.21

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.cjs CHANGED
@@ -295,7 +295,7 @@ async function createCtx(options) {
295
295
  fsCache: false,
296
296
  moduleCache: false
297
297
  });
298
- const config = await jiti$1.import(resolvedConfigPath, { default: true });
298
+ const config = jiti$1.evalModule(await promises.readFile(resolvedConfigPath, { encoding: "utf-8" }), { filename: resolvedConfigPath }).default;
299
299
  return { config: klona.klona(config), file: resolvedConfigPath };
300
300
  },
301
301
  init: perfectDebounce.debounce(async () => {
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { statSync } from 'node:fs';
2
- import { writeFile, mkdir } from 'node:fs/promises';
2
+ import { writeFile, mkdir, readFile } from 'node:fs/promises';
3
3
  import { setWarnFn, warn, defineEnginePlugin, createEngine } from '@pikacss/core';
4
4
  export * from '@pikacss/core';
5
5
  import { createJiti } from 'jiti';
@@ -289,7 +289,7 @@ async function createCtx(options) {
289
289
  fsCache: false,
290
290
  moduleCache: false
291
291
  });
292
- const config = await jiti.import(resolvedConfigPath, { default: true });
292
+ const config = jiti.evalModule(await readFile(resolvedConfigPath, { encoding: "utf-8" }), { filename: resolvedConfigPath }).default;
293
293
  return { config: klona(config), file: resolvedConfigPath };
294
294
  },
295
295
  init: debounce(async () => {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.0.19",
7
+ "version": "0.0.21",
8
8
  "author": "DevilTea <ch19980814@gmail.com>",
9
9
  "license": "MIT",
10
10
  "repository": {
@@ -42,7 +42,7 @@
42
42
  "micromatch": "^4.0.8",
43
43
  "pathe": "^2.0.3",
44
44
  "perfect-debounce": "^1.0.0",
45
- "@pikacss/core": "0.0.19"
45
+ "@pikacss/core": "0.0.21"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/micromatch": "^4.0.9"