diff --git a/packages/bundler-webpack/src/config/definePlugin.ts b/packages/bundler-webpack/src/config/definePlugin.ts index 1db98e005dec..ad646fc2552e 100644 --- a/packages/bundler-webpack/src/config/definePlugin.ts +++ b/packages/bundler-webpack/src/config/definePlugin.ts @@ -37,6 +37,7 @@ export function resolveDefine(opts: { define: any; publicPath?: string }) { return { 'process.env': env, + 'process.env.SSR_RESOURCE_DIR': 'process.env.SSR_RESOURCE_DIR', ...define, }; }