0.6.15 • Published 8 months ago
@module-federation/rsbuild-plugin v0.6.15
@module-federation/rsbuild-plugin
Example
npm install @module-federation/rsbuild-plugin -D
npm install @module-federation/enhanced
Rsbuild App
import { pluginModuleFederation } from '@module-federation/rsbuild-plugin';
import { defineConfig } from '@rsbuild/core';
import { pluginReact } from '@rsbuild/plugin-react';
export default defineConfig({
server: {
port: 2000,
},
plugins: [
pluginReact(),
pluginModuleFederation({
name: 'federation_consumer',
remotes: {
remote1: 'remote1@http://localhost:2001/mf-manifest.json',
},
shared: ['react', 'react-dom'],
}),
],
});
Rslib Module
import { pluginModuleFederation } from '@module-federation/rsbuild-plugin';
import { defineConfig } from '@rslib/core';
export default defineConfig({
lib: [
// ...
{
format: 'mf',
output: {
distPath: {
root: './dist/mf',
},
assetPrefix: 'http://localhost:3001/mf',
},
plugins: [
// ...
pluginModuleFederation({
name: 'rslib_provider',
exposes: {
'.': './src/index.tsx',
},
shared: {
react: {
singleton: true,
},
'react-dom': {
singleton: true,
},
},
}),
],
},
],
});
0.0.0-next-20241101074502
8 months ago
0.0.0-next-20241101093646
8 months ago
0.6.15
8 months ago
0.0.0-next-20241030074135
8 months ago
0.0.0-next-20241029065803
8 months ago
0.0.0-next-20241029083753
8 months ago
0.0.0-next-20241029032646
8 months ago
0.0.0-next-20241029093536
8 months ago
0.0.0-next-20241030095049
8 months ago
0.6.14
8 months ago
0.6.13
9 months ago
0.0.0-next-20241025122930
9 months ago
0.6.12
9 months ago
0.0.0-next-20241018034826
9 months ago
0.0.0-next-20241018073700
9 months ago
0.0.0-next-20241018073518
9 months ago
0.0.0-next-20241021084851
9 months ago
0.0.0-next-20241017090853
9 months ago
0.0.0-next-20241017102355
9 months ago
0.0.0-next-20241021083129
9 months ago
0.0.0-next-20241018034800
9 months ago
0.0.0-next-20241016071233
9 months ago
0.0.0-next-20241016083243
9 months ago
0.0.2
9 months ago
0.0.0-next-20241016082124
9 months ago
0.0.0-next-20241016062654
9 months ago
0.0.0-next-20241014092946
9 months ago
0.0.0-next-20241010063233
9 months ago
0.0.0-next-20241010040057
9 months ago
0.0.0-next-20241010035127
9 months ago
0.0.0-next-20241010034200
9 months ago
0.0.0-next-20241010031731
9 months ago
0.0.0-next-20241009093433
9 months ago
0.0.0-next-20241009084741
9 months ago
0.0.0-next-20241009081924
9 months ago