rollup-plugin-react-scoped-css 0.8.1 → 0.8.2

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.
@@ -8,6 +8,9 @@ const isNode = (obj) => {
8
8
  typeof obj?.type === "string");
9
9
  };
10
10
  const astTransformer = (ast, callback) => {
11
+ if (!ast) {
12
+ return ast;
13
+ }
11
14
  for (const key of Object.keys(ast)) {
12
15
  if (["end", "start", "type"].includes(key)) {
13
16
  continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rollup-plugin-react-scoped-css",
3
- "version": "0.8.1",
3
+ "version": "0.8.2",
4
4
  "description": "A rollup plugin designed to allow scoped css to be run in react (Compatible with vite and rollup)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",