mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-23 02:15:01 +00:00
Allow library build to work with Typescript
This commit is contained in:
parent
25b3678aae
commit
30ca4af6d8
1 changed files with 4 additions and 1 deletions
|
|
@ -4,6 +4,9 @@ const UglifyJsPlugin = require("uglifyjs-webpack-plugin");
|
|||
const { BundleAnalyzerPlugin } = require("webpack-bundle-analyzer");
|
||||
|
||||
module.exports = {
|
||||
resolve: {
|
||||
extensions: [".js", ".ts"]
|
||||
},
|
||||
node: {
|
||||
// Consider suggesting jsmediatags use: https://github.com/feross/is-buffer
|
||||
// Cuts 22k
|
||||
|
|
@ -17,7 +20,7 @@ module.exports = {
|
|||
use: ["style-loader", "css-loader"]
|
||||
},
|
||||
{
|
||||
test: /\.js$/,
|
||||
test: /\.[tj]s$/,
|
||||
exclude: /(node_modules)/,
|
||||
use: {
|
||||
loader: "babel-loader",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue