@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.
@@ -84,6 +84,7 @@ export function initBlockStudioPlugins(options) {
84
84
  '@emotion/styled',
85
85
  '@arcblock/ux',
86
86
  /^@mui\/.*/, // 所有 MUI 相关包
87
+ '@mui/material/styles', // 明确指定这个路径
87
88
  ],
88
89
  output: {
89
90
  // 为所有外部依赖提供全局变量
@@ -100,6 +101,9 @@ export function initBlockStudioPlugins(options) {
100
101
  // Redirect 'react' imports to '@blocklet/pages-kit/builtin/react'
101
102
  // react: '@blocklet/pages-kit/builtin/react',
102
103
  },
104
+ // 确保正确处理命名导出和默认导出
105
+ interop: 'auto',
106
+ preserveModules: true, // 保持模块结构
103
107
  },
104
108
  },
105
109
  },