From 391e93b22327754292db143aceee249700e17fde Mon Sep 17 00:00:00 2001 From: azu Date: Fri, 7 Aug 2020 01:53:26 +0900 Subject: [PATCH] docs: fix webpack config for TypeScript --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 10be568..bfb5306 100644 --- a/README.md +++ b/README.md @@ -121,6 +121,9 @@ module.exports = require("@jsdevtools/karma-config")({ browserNoActivityTimeout: 5000, // Set Karma's inactivity timeout browsers: ["Opera", "Safari"] // Always use these browsers, regardless of OS webpack: { + resolve: { + extensions: [".js", ".jsx", ".ts", ".tsx"] // Configure Webpack to resolve TypeScript file + }, mode: "production", // Override the default Webpack mode module: { rules: [