Skip to content

Commit

Permalink
feat: expose plugin options to other plugins (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
zmzlois authored Nov 4, 2024
1 parent c1c5835 commit ed7f150
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ function federation(mfUserOptions: ModuleFederationOptions): Plugin[] {
{
name: 'module-federation-vite',
enforce: 'post',
// @ts-expect-error
// used to expose plugin options: https://github.com/rolldown/rolldown/discussions/2577#discussioncomment-11137593
_options: options,
config(config, { command: _command }: { command: string }) {
// TODO: singleton
(config.resolve as any).alias.push({
Expand Down

0 comments on commit ed7f150

Please sign in to comment.