mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-23 02:15:01 +00:00
Allow the library webpack build to see .tsx files
This commit is contained in:
parent
54a894da54
commit
a3dd307e61
1 changed files with 2 additions and 2 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue