@moluoxixi/css-module-global-root-plugin 0.0.9 → 0.0.10

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/es/index.d.ts CHANGED
@@ -12,7 +12,6 @@ export interface CssModuleGlobalRootPluginOptions {
12
12
  */
13
13
  removeRoot?: boolean;
14
14
  }
15
- type cssModuleGlobalRootPluginType = (config?: CssModuleGlobalRootPluginOptions) => Plugin;
16
15
  /**
17
16
  * PostCSS 插件:处理 CSS Module 文件中的 :root 选择器
18
17
  *
@@ -69,5 +68,9 @@ type cssModuleGlobalRootPluginType = (config?: CssModuleGlobalRootPluginOptions)
69
68
  * @param options 插件配置选项
70
69
  * @returns {Plugin} PostCSS 插件实例
71
70
  */
72
- declare const cssModuleGlobalRootPlugin: cssModuleGlobalRootPluginType;
71
+ declare function cssModuleGlobalRootPlugin(options?: CssModuleGlobalRootPluginOptions): Plugin;
72
+ declare namespace cssModuleGlobalRootPlugin {
73
+ var postcss: boolean;
74
+ }
73
75
  export default cssModuleGlobalRootPlugin;
76
+ export { cssModuleGlobalRootPlugin };
package/es/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- const cssModuleGlobalRootPlugin = (options = {}) => {
1
+ function cssModuleGlobalRootPlugin(options = {}) {
2
2
  const { removeRoot = true } = options;
3
3
  return {
4
4
  postcssPlugin: "css-module-global-root",
@@ -52,8 +52,9 @@ const cssModuleGlobalRootPlugin = (options = {}) => {
52
52
  });
53
53
  }
54
54
  };
55
- };
55
+ }
56
56
  cssModuleGlobalRootPlugin.postcss = true;
57
57
  export {
58
+ cssModuleGlobalRootPlugin,
58
59
  cssModuleGlobalRootPlugin as default
59
60
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moluoxixi/css-module-global-root-plugin",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "description": "cssModuleGlobalRootPlugin 组件",
5
5
  "sideEffects": [
6
6
  "*.css",