From 458c4eba8828a156b9d6858730116665700f2255 Mon Sep 17 00:00:00 2001 From: Igor Randjelovic Date: Mon, 5 Apr 2021 15:27:48 +0200 Subject: [PATCH] fix: context regext to match the dot, exclude .d.ts --- packages/webpack5/src/configuration/typescript.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/webpack5/src/configuration/typescript.ts b/packages/webpack5/src/configuration/typescript.ts index e3b71de5e..cfc4709f5 100644 --- a/packages/webpack5/src/configuration/typescript.ts +++ b/packages/webpack5/src/configuration/typescript.ts @@ -8,7 +8,7 @@ import base from './base'; export default function (config: Config, env: IWebpackEnv = _env): Config { base(config, env); const entryPath = getEntryPath(); - const filterRE = '/.(xml|js|ts|s?css)$/'; + const filterRE = '/\\.(xml|js|(?