From a3dd307e61b92d8cead1cfd53373e2dcf7a40b87 Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Mon, 17 Sep 2018 08:32:51 -0700 Subject: [PATCH] Allow the library webpack build to see .tsx files --- config/webpack.library.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/webpack.library.js b/config/webpack.library.js index b1809b3a..806b9da1 100644 --- a/config/webpack.library.js +++ b/config/webpack.library.js @@ -5,7 +5,7 @@ const { BundleAnalyzerPlugin } = require("webpack-bundle-analyzer"); module.exports = { resolve: { - extensions: [".js", ".ts"] + extensions: [".js", ".ts", ".tsx"] }, node: { // Consider suggesting jsmediatags use: https://github.com/feross/is-buffer @@ -20,7 +20,7 @@ module.exports = { use: ["style-loader", "css-loader"] }, { - test: /\.[tj]s$/, + test: /\.(js|ts|tsx)$/, exclude: /(node_modules)/, use: { loader: "babel-loader",