Skip to content

Commit ae7a2ae

Browse files
committed
Update rsbuild configuration to enable build cache and svgr named exports
- some svg land in build, not imported by anything └── apps └── editor ├── package.json └── rsbuild.config.ts
1 parent c80fc69 commit ae7a2ae

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎apps/editor/rsbuild.config.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import * as path from 'path'
88

99
export default defineConfig({
1010
performance: {
11+
buildCache: true,
1112
chunkSplit: {
1213
strategy: 'all-in-one'
1314
}
@@ -103,7 +104,9 @@ export default defineConfig({
103104
}
104105
}),
105106
pluginSvgr({
106-
mixedImport: true
107+
svgrOptions: {
108+
exportType: 'named'
109+
}
107110
})
108111
]
109112
}

0 commit comments

Comments
 (0)