Skip to content

Commit 41f041e

Browse files
committed
chore: note on conditional virtual entry if needed
1 parent ac65c0b commit 41f041e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/webpack5/src/configuration/typescript.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ export default function (config: Config, env: IWebpackEnv = _env): Config {
1212
const entryPath = getEntryPath();
1313
const virtualEntryPath = path.resolve(
1414
__dirname,
15-
`../stubs/virtual-entry-typescript.${env.commonjs ? 'js' : 'mjs'}`,
15+
// Note: not sure we'll need this but just an idea if we do.
16+
// `../stubs/virtual-entry-typescript.${env.commonjs ? 'js' : 'mjs'}`,
17+
`../stubs/virtual-entry-typescript.js`,
1618
);
1719

1820
// exclude files starting with _ from require.context

0 commit comments

Comments
 (0)