@pandacss/postcss 0.22.0 → 0.22.1

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
@@ -48,6 +48,15 @@ function isValidCss(file) {
48
48
  const [filePath] = file.split("?");
49
49
  return import_path.default.extname(filePath) === ".css";
50
50
  }
51
+ var shouldSkip = (fileName) => {
52
+ if (!fileName)
53
+ return true;
54
+ if (!isValidCss(fileName))
55
+ return true;
56
+ if (fileName.includes("@pandacss/astro/base.css"))
57
+ return false;
58
+ return nodeModulesRegex.test(fileName);
59
+ };
51
60
  var pandacss = (options = {}) => {
52
61
  const { configPath, cwd } = options;
53
62
  return {
@@ -55,7 +64,7 @@ var pandacss = (options = {}) => {
55
64
  plugins: [
56
65
  async function(root, result) {
57
66
  const fileName = result.opts.from;
58
- const skip = fileName ? !isValidCss(fileName) || nodeModulesRegex.test(fileName) : true;
67
+ const skip = shouldSkip(fileName);
59
68
  if (skip)
60
69
  return;
61
70
  await builder.setup({ configPath, cwd });
package/dist/index.mjs CHANGED
@@ -19,6 +19,15 @@ function isValidCss(file) {
19
19
  const [filePath] = file.split("?");
20
20
  return path2.extname(filePath) === ".css";
21
21
  }
22
+ var shouldSkip = (fileName) => {
23
+ if (!fileName)
24
+ return true;
25
+ if (!isValidCss(fileName))
26
+ return true;
27
+ if (fileName.includes("@pandacss/astro/base.css"))
28
+ return false;
29
+ return nodeModulesRegex.test(fileName);
30
+ };
22
31
  var pandacss = (options = {}) => {
23
32
  const { configPath, cwd } = options;
24
33
  return {
@@ -26,7 +35,7 @@ var pandacss = (options = {}) => {
26
35
  plugins: [
27
36
  async function(root, result) {
28
37
  const fileName = result.opts.from;
29
- const skip = fileName ? !isValidCss(fileName) || nodeModulesRegex.test(fileName) : true;
38
+ const skip = shouldSkip(fileName);
30
39
  if (skip)
31
40
  return;
32
41
  await builder.setup({ configPath, cwd });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/postcss",
3
- "version": "0.22.0",
3
+ "version": "0.22.1",
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.22.0"
30
+ "@pandacss/node": "0.22.1"
31
31
  },
32
32
  "scripts": {
33
33
  "build": "tsup src/index.ts --format=cjs,esm --shims --dts",