From 41f041e17596ff2819a15561e221cea35486646b Mon Sep 17 00:00:00 2001 From: Nathan Walker Date: Wed, 23 Jul 2025 13:26:00 -0700 Subject: [PATCH] chore: note on conditional virtual entry if needed --- packages/webpack5/src/configuration/typescript.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/webpack5/src/configuration/typescript.ts b/packages/webpack5/src/configuration/typescript.ts index f1fd88664..378ba258e 100644 --- a/packages/webpack5/src/configuration/typescript.ts +++ b/packages/webpack5/src/configuration/typescript.ts @@ -12,7 +12,9 @@ export default function (config: Config, env: IWebpackEnv = _env): Config { const entryPath = getEntryPath(); const virtualEntryPath = path.resolve( __dirname, - `../stubs/virtual-entry-typescript.${env.commonjs ? 'js' : 'mjs'}`, + // Note: not sure we'll need this but just an idea if we do. + // `../stubs/virtual-entry-typescript.${env.commonjs ? 'js' : 'mjs'}`, + `../stubs/virtual-entry-typescript.js`, ); // exclude files starting with _ from require.context