return resolve plugin

This commit is contained in:
weboko 2023-02-02 00:03:26 +01:00
parent 0fdcfcee35
commit b1c7048923
No known key found for this signature in database
1 changed files with 5 additions and 0 deletions

View File

@ -36,6 +36,11 @@ module.exports = function (config) {
},
webpack: {
mode: "production",
resolve: {
// Add `.ts` and `.tsx` as a resolvable extension.
extensions: [".ts", ".tsx", ".js"],
plugins: [new ResolveTypeScriptPlugin()],
},
module: {
rules: [
{