Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

docs: fix webpack config for TypeScript #1

Merged
merged 1 commit into from
Aug 29, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down