diff --git a/rsbuild.config.ts b/rsbuild.config.ts index 0da0e06..a714e9d 100644 --- a/rsbuild.config.ts +++ b/rsbuild.config.ts @@ -18,6 +18,15 @@ export default defineConfig({ }, }, rspack: { + module: { + rules: [ + { + // Built-in doc entries are statically imported as strings + test: /[\\/]doc-entries[\\/].*\.md$/, + type: "asset/source", + }, + ], + }, plugins: [ process.env.ANALYZE ? new BundleAnalyzerPlugin() : undefined, ].filter(Boolean),