fix: context regext to match the dot, exclude .d.ts

This commit is contained in:
Igor Randjelovic
2021-04-05 15:27:48 +02:00
parent 13b3364e62
commit 458c4eba88

View File

@@ -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|(?<!d\\.)ts|s?css)$/';
const virtualEntryPath = addVirtualEntry(
config,
'typescript',