From 8c2cec79ab28a29e633741d4742a0e22c71b1a52 Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Tue, 10 Aug 2021 12:42:57 -0400 Subject: [PATCH 1/2] Fix source map build warnings --- webpack.dev.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webpack.dev.js b/webpack.dev.js index 297c29dc9..dc807b219 100644 --- a/webpack.dev.js +++ b/webpack.dev.js @@ -12,11 +12,13 @@ module.exports = merge(common, { rules: [ { test: /\.(js|jsx)$/, + exclude: /node_modules/, enforce: 'pre', use: ['source-map-loader'] }, { test: /\.(ts|tsx)$/, + exclude: /node_modules/, enforce: 'pre', use: ['source-map-loader'] } From 2ccce1aa8bffa66585b545b26d3eb26baeb42cb0 Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Tue, 10 Aug 2021 12:43:24 -0400 Subject: [PATCH 2/2] Fix package import build warnings --- src/components/apphost.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/apphost.js b/src/components/apphost.js index 39cfabbe4..3e4d9d1f5 100644 --- a/src/components/apphost.js +++ b/src/components/apphost.js @@ -1,4 +1,4 @@ -import { version as appVersion } from '../../package.json'; +import Package from '../../package.json'; import appSettings from '../scripts/settings/appSettings'; import browser from '../scripts/browser'; import { Events } from 'jellyfin-apiclient'; @@ -33,7 +33,7 @@ function getDeviceProfile(item) { let profile; if (window.NativeShell) { - profile = window.NativeShell.AppHost.getDeviceProfile(profileBuilder, appVersion); + profile = window.NativeShell.AppHost.getDeviceProfile(profileBuilder, Package.version); } else { const builderOpts = getBaseProfileOptions(item); profile = profileBuilder(builderOpts); @@ -373,7 +373,7 @@ export const appHost = { }, appVersion: function () { return window.NativeShell?.AppHost?.appVersion - ? window.NativeShell.AppHost.appVersion() : appVersion; + ? window.NativeShell.AppHost.appVersion() : Package.version; }, getPushTokenInfo: function () { return {};