From 968bfb52fbfb5206813d3447c8347b1a0e1ad31f Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Fri, 4 Nov 2022 02:24:30 -0400 Subject: [PATCH] Remove dfnshelper global for eslint --- .eslintrc.js | 1 - webpack.common.js | 8 +++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 42afb79449..10366dc746 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -224,7 +224,6 @@ module.exports = { 'Emby': 'readonly', 'Globalize': 'writable', 'Hls': 'writable', - 'dfnshelper': 'writable', 'LibraryMenu': 'writable', 'LinkParser': 'writable', 'LiveTvHelpers': 'writable', diff --git a/webpack.common.js b/webpack.common.js index 142d1bcec1..4c15134b52 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -121,10 +121,12 @@ const config = { let name = `node_modules.${parts[0]}`; if (parts[1]) { name += `.${parts[1]}`; + + if (parts[1] === 'locale' && parts[2]) { + name += `.${parts[2]}`; + } } - if (parts[1] === 'locale') { - name += `.${parts[2]}`; - } + return name; }