Skip to content

Commit

Permalink
fix markdown chart name in rsbuild (#8)
Browse files Browse the repository at this point in the history
Signed-off-by: Augustin Husson <[email protected]>
  • Loading branch information
Nexucis authored Aug 6, 2024
1 parent 41efae8 commit dbc822b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions MarkdownChart/rsbuild.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@ export default defineConfig({
port: 3005,
},
dev: {
assetPrefix: '/plugins-dev/Markdown/',
assetPrefix: '/plugins-dev/MarkdownChart/',
},
output: {
assetPrefix: '/plugins/Markdown/',
assetPrefix: '/plugins/MarkdownChart/',
},
plugins: [pluginReact()],
tools: {
htmlPlugin: false,
rspack: (config, { appendPlugins }) => {
config.output!.uniqueName = 'Markdown';
config.output!.uniqueName = 'MarkdownChart';
appendPlugins([
new ModuleFederationPlugin({
name: 'Markdown',
name: 'MarkdownChart',
exposes: {
'./Chart': './src/Chart.tsx',
},
Expand Down

0 comments on commit dbc822b

Please sign in to comment.