From 5d40eb0b23d00886efa5f637a9b3526e06e366a5 Mon Sep 17 00:00:00 2001 From: Dmitry Lyzo Date: Fri, 8 May 2020 01:25:58 +0300 Subject: [PATCH] Babel apiclient and fix reference name --- src/bundle.js | 2 +- webpack.dev.js | 2 +- webpack.prod.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bundle.js b/src/bundle.js index a04be15eb9..d7ba6c6a51 100644 --- a/src/bundle.js +++ b/src/bundle.js @@ -158,7 +158,7 @@ _define('headroom', function () { var apiclient = require('jellyfin-apiclient'); _define('apiclient', function () { - return apiclient.apiclient; + return apiclient.ApiClient; }); _define('events', function () { diff --git a/webpack.dev.js b/webpack.dev.js index e4663e1656..76a1a7a752 100644 --- a/webpack.dev.js +++ b/webpack.dev.js @@ -16,7 +16,7 @@ module.exports = merge(common, { rules: [ { test: /\.js$/, - exclude: /node_modules[\\/](?!query-string|split-on-first|strict-uri-encode)/, + exclude: /node_modules[\\/](?!jellyfin-apiclient|query-string|split-on-first|strict-uri-encode)/, use: { loader: 'babel-loader', options: { diff --git a/webpack.prod.js b/webpack.prod.js index c213946883..f5c7accd04 100644 --- a/webpack.prod.js +++ b/webpack.prod.js @@ -9,7 +9,7 @@ module.exports = merge(common, { rules: [ { test: /\.js$/, - exclude: /node_modules[\\/](?!query-string|split-on-first|strict-uri-encode)/, + exclude: /node_modules[\\/](?!jellyfin-apiclient|query-string|split-on-first|strict-uri-encode)/, use: { loader: 'babel-loader', options: {