@bit-sun/business-component 4.0.13-alpha.30 → 4.0.13-alpha.31

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/.umirc.ts CHANGED
@@ -83,4 +83,15 @@ export default defineConfig({
83
83
  },
84
84
  },
85
85
  // more config: https://d.umijs.org/config
86
+
87
+ // 添加 webpack 配置
88
+ chainWebpack: (config) => {
89
+ // 处理 SWR 模块的导入问题
90
+ config.module
91
+ .rule('mjs-rule')
92
+ .test(/\.mjs$/)
93
+ .include.add(/node_modules/)
94
+ .end()
95
+ .type('javascript/auto');
96
+ },
86
97
  });