10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b6ce01 commit d6b1d60Copy full SHA for d6b1d60
packages/webpack5/src/configuration/base.ts
@@ -237,6 +237,10 @@ export default function (config: Config, env: IWebpackEnv = _env): Config {
237
configFile: resolve(__dirname, '../stubs/tsconfig.default.json'),
238
context: getProjectRootPath(),
239
};
240
+
241
+ // if the project doesn't have a ts config - we don't want to automatically resolve to .ts files
242
+ // in these cases the file would need to be explicitly imported with the .ts extension to be processed.
243
+ config.resolve.extensions.delete(`.${platform}.ts`).delete('.ts');
244
}
245
246
// set up ts support
0 commit comments