@pandacss/postcss 0.19.0 → 0.21.0

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
@@ -31,9 +31,9 @@ var customRequire = (0, import_module.createRequire)(__dirname);
31
31
  var PLUGIN_NAME = "pandacss";
32
32
  var interopDefault = (obj) => obj && obj.__esModule ? obj.default : obj;
33
33
  var loadConfig = () => interopDefault(customRequire("@pandacss/postcss"));
34
+ var builder = new import_node.Builder();
34
35
  var pandacss = (options = {}) => {
35
36
  const { configPath, cwd } = options;
36
- const builder = new import_node.Builder();
37
37
  return {
38
38
  postcssPlugin: PLUGIN_NAME,
39
39
  plugins: [
@@ -42,7 +42,7 @@ var pandacss = (options = {}) => {
42
42
  if (!builder.isValidRoot(root)) {
43
43
  return;
44
44
  }
45
- builder.emit();
45
+ await builder.emit();
46
46
  await builder.extract();
47
47
  builder.registerDependency((dep) => {
48
48
  result.messages.push({
package/dist/index.mjs CHANGED
@@ -12,9 +12,9 @@ var customRequire = createRequire(__dirname);
12
12
  var PLUGIN_NAME = "pandacss";
13
13
  var interopDefault = (obj) => obj && obj.__esModule ? obj.default : obj;
14
14
  var loadConfig = () => interopDefault(customRequire("@pandacss/postcss"));
15
+ var builder = new Builder();
15
16
  var pandacss = (options = {}) => {
16
17
  const { configPath, cwd } = options;
17
- const builder = new Builder();
18
18
  return {
19
19
  postcssPlugin: PLUGIN_NAME,
20
20
  plugins: [
@@ -23,7 +23,7 @@ var pandacss = (options = {}) => {
23
23
  if (!builder.isValidRoot(root)) {
24
24
  return;
25
25
  }
26
- builder.emit();
26
+ await builder.emit();
27
27
  await builder.extract();
28
28
  builder.registerDependency((dep) => {
29
29
  result.messages.push({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/postcss",
3
- "version": "0.19.0",
3
+ "version": "0.21.0",
4
4
  "description": "PostCSS integration for Panda CSS",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -27,7 +27,7 @@
27
27
  ],
28
28
  "dependencies": {
29
29
  "postcss": "^8.4.31",
30
- "@pandacss/node": "0.19.0"
30
+ "@pandacss/node": "0.21.0"
31
31
  },
32
32
  "scripts": {
33
33
  "build": "tsup src/index.ts --format=cjs,esm --shims --dts",