rollup-plugin-react-scoped-css 0.6.1 → 0.7.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/README.md CHANGED
@@ -68,12 +68,12 @@ in vite:
68
68
  ```js
69
69
  // vite.config.js
70
70
  import { defineConfig } from 'vite'
71
- import reactRefresh from '@vitejs/plugin-react-refresh'
72
- import reactScopedCssPlugin from 'rollup-plugin-react-scoped-css'
71
+ import react from '@vitejs/plugin-react'
72
+ import { reactScopedCssPlugin } from 'rollup-plugin-react-scoped-css'
73
73
 
74
74
  // https://vitejs.dev/config/
75
75
  export default defineConfig({
76
- plugins: [reactRefresh(), reactScopedCssPlugin()]
76
+ plugins: [react(), reactScopedCssPlugin()]
77
77
  })
78
78
  ```
79
79
 
package/dist/index.d.ts CHANGED
@@ -36,4 +36,4 @@ export interface ReactScopedCssPluginOptions {
36
36
  export interface VitePartialPlugin extends Plugin {
37
37
  enforce?: "pre" | "post";
38
38
  }
39
- export default function reactScopedCssPlugin(optionsIn?: ReactScopedCssPluginOptions): VitePartialPlugin[];
39
+ export declare function reactScopedCssPlugin(optionsIn?: ReactScopedCssPluginOptions): VitePartialPlugin[];
package/dist/index.js CHANGED
@@ -30,6 +30,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
30
30
  return result;
31
31
  };
32
32
  Object.defineProperty(exports, "__esModule", { value: true });
33
+ exports.reactScopedCssPlugin = void 0;
33
34
  /* eslint-disable no-useless-escape */
34
35
  var path = __importStar(require("path"));
35
36
  var js_xxhash_1 = require("js-xxhash");
@@ -113,4 +114,4 @@ function reactScopedCssPlugin(optionsIn) {
113
114
  },
114
115
  ];
115
116
  }
116
- exports.default = reactScopedCssPlugin;
117
+ exports.reactScopedCssPlugin = reactScopedCssPlugin;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rollup-plugin-react-scoped-css",
3
- "version": "0.6.1",
3
+ "version": "0.7.0",
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",