mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-23 02:15:01 +00:00
Allow webpack to see .tsx files
This commit is contained in:
parent
ea3ae78833
commit
54a894da54
1 changed files with 2 additions and 2 deletions
|
|
@ -5,7 +5,7 @@ const HtmlWebpackInlineSVGPlugin = require("html-webpack-inline-svg-plugin");
|
|||
|
||||
module.exports = {
|
||||
resolve: {
|
||||
extensions: [".js", ".ts"]
|
||||
extensions: [".js", ".ts", ".tsx"]
|
||||
},
|
||||
node: {
|
||||
// Consider suggesting jsmediatags use: https://github.com/feross/is-buffer
|
||||
|
|
@ -19,7 +19,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