From f1fe6f96621e01c80a14ce782cb42ad2884dd7b9 Mon Sep 17 00:00:00 2001 From: zmzlois Date: Mon, 4 Nov 2024 02:16:50 +0000 Subject: [PATCH 1/2] got it --- src/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.ts b/src/index.ts index d9a657b..925f659 100644 --- a/src/index.ts +++ b/src/index.ts @@ -61,6 +61,8 @@ function federation(mfUserOptions: ModuleFederationOptions): Plugin[] { { name: 'module-federation-vite', enforce: 'post', + // @ts-expect-error used to expose plugin options + _options: options, config(config, { command: _command }: { command: string }) { // TODO: singleton (config.resolve as any).alias.push({ From 9db6fda47df106997bbc22dafd0f04ff59dc2103 Mon Sep 17 00:00:00 2001 From: gioboa Date: Mon, 4 Nov 2024 10:27:58 +0100 Subject: [PATCH 2/2] feat: add GH link --- src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 925f659..60780a8 100644 --- a/src/index.ts +++ b/src/index.ts @@ -61,7 +61,8 @@ function federation(mfUserOptions: ModuleFederationOptions): Plugin[] { { name: 'module-federation-vite', enforce: 'post', - // @ts-expect-error used to expose plugin options + // @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