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",