diff --git a/e2e/fixtures/rsc-asset/waku.config.ts b/e2e/fixtures/rsc-asset/waku.config.ts index 747e89b7e..21b7b936e 100644 --- a/e2e/fixtures/rsc-asset/waku.config.ts +++ b/e2e/fixtures/rsc-asset/waku.config.ts @@ -11,6 +11,15 @@ export default defineConfig({ plugins: [importMetaUrlServerPlugin()], }), }, + vite: { + plugins: [ + { + ...importMetaUrlServerPlugin(), + apply: 'build', + applyToEnvironment: (environment) => environment.name === 'rsc', + }, + ], + }, }); // emit asset and rewrite `new URL("./xxx", import.meta.url)` syntax for build. diff --git a/e2e/fixtures/rsc-basic/index.html b/e2e/fixtures/rsc-basic/index.html index 13b18e94a..3d5f38f54 100644 --- a/e2e/fixtures/rsc-basic/index.html +++ b/e2e/fixtures/rsc-basic/index.html @@ -4,7 +4,5 @@ -
- - +