@blocklet/pages-kit-block-studio 0.0.4 → 0.0.5
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.
|
@@ -120,6 +120,7 @@ function initBlockStudioPlugins(options) {
|
|
|
120
120
|
'@emotion/styled',
|
|
121
121
|
'@arcblock/ux',
|
|
122
122
|
/^@mui\/.*/, // 所有 MUI 相关包
|
|
123
|
+
'@mui/material/styles', // 明确指定这个路径
|
|
123
124
|
],
|
|
124
125
|
output: {
|
|
125
126
|
// 为所有外部依赖提供全局变量
|
|
@@ -136,6 +137,9 @@ function initBlockStudioPlugins(options) {
|
|
|
136
137
|
// Redirect 'react' imports to '@blocklet/pages-kit/builtin/react'
|
|
137
138
|
// react: '@blocklet/pages-kit/builtin/react',
|
|
138
139
|
},
|
|
140
|
+
// 确保正确处理命名导出和默认导出
|
|
141
|
+
interop: 'auto',
|
|
142
|
+
preserveModules: true, // 保持模块结构
|
|
139
143
|
},
|
|
140
144
|
},
|
|
141
145
|
},
|