web-infra-dev / rspack

The fast Rust-based web bundler with webpack-compatible API 🦀️
https://rspack.dev
MIT License
10.04k stars 573 forks source link

[Bug]: how to use like ModuleFederationPlugin in rspack? #8502

Open ustcfury opened 1 day ago

ustcfury commented 1 day ago

System Info

const { ModuleFederationPlugin, } = require('@module-federation/enhanced/rspack');

const ExternalTemplateRemotesPlugin = require("external-remotes-plugin");

module.exports = { plugins: [ new ModuleFederationPlugin({ // options }), new ExternalTemplateRemotesPlugin() ], };

then I meet Image

Details

const { ModuleFederationPlugin, } = require('@module-federation/enhanced/rspack');

const ExternalTemplateRemotesPlugin = require("external-remotes-plugin");

module.exports = { plugins: [ new ModuleFederationPlugin({ // options }), new ExternalTemplateRemotesPlugin() ], };

then I meet Image

Reproduce link

No response

Reproduce Steps

const { ModuleFederationPlugin, } = require('@module-federation/enhanced/rspack');

const ExternalTemplateRemotesPlugin = require("external-remotes-plugin");

module.exports = { plugins: [ new ModuleFederationPlugin({ // options }), new ExternalTemplateRemotesPlugin() ], };

then I meet Image