Commit cc409037ae22435532d61006a9471cfc786c5b86

Authored by 张志伟
1 parent 9aec908e

🚚 chore(*): 更新依赖

Showing 1 changed file with 10 additions and 7 deletions
modern.config.ts
... ... @@ -8,7 +8,7 @@ export default defineConfig({
8 8 state: true,
9 9 },
10 10 dev: {
11   - progressBar: false,
  11 + progressBar: { id: `🐹 ${process.env.APP_NAME}` },
12 12 host: process.env.XHOST,
13 13 port: Number(process.env.XPORT ?? 8080),
14 14 },
... ... @@ -28,14 +28,17 @@ export default defineConfig({
28 28 'process.env.MODERN_APP_ID': process.env.MODERN_APP_ID,
29 29 'process.env.MODERN_CALKEY': process.env.MODERN_CALKEY,
30 30 },
  31 + transformImport: [
  32 + {
  33 + libraryName: '@nutui/nutui-react',
  34 + libraryDirectory: 'dist/esm',
  35 + style: 'css',
  36 + camelToDashComponentName: false,
  37 + },
  38 + ],
31 39 },
32 40 tools: {
33   - rspack: (config, { prependPlugins, rspack }) => {
34   - prependPlugins(
35   - new rspack.ProgressPlugin({
36   - prefix: `🐹 ${process.env.APP_NAME}`,
37   - }),
38   - );
  41 + rspack: config => {
39 42 config.experiments = {
40 43 ...config.experiments,
41 44 asyncWebAssembly: true,
... ...