diff --git a/package.json b/package.json index 0b707f3d5..44f445970 100644 --- a/package.json +++ b/package.json @@ -204,7 +204,7 @@ "yarn": "^1.3" }, "lbrySettings": { - "lbrynetDaemonVersion": "0.40.1", + "lbrynetDaemonVersion": "0.42.0", "lbrynetDaemonUrlTemplate": "https://github.com/lbryio/lbry/releases/download/vDAEMONVER/lbrynet-OSNAME.zip", "lbrynetDaemonDir": "static/daemon", "lbrynetDaemonFileName": "lbrynet" diff --git a/webpack.base.config.js b/webpack.base.config.js index 4c36be30a..9730a693a 100644 --- a/webpack.base.config.js +++ b/webpack.base.config.js @@ -106,9 +106,6 @@ let baseConfig = { plugins: [ new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/), new webpack.EnvironmentPlugin(['NODE_ENV']), - new ProvidePlugin({ - __: ['i18n.js', '__'], - }), new DefinePlugin({ __static: `"${path.join(__dirname, 'static').replace(/\\/g, '\\\\')}"`, 'process.env.NODE_ENV': JSON.stringify(NODE_ENV), diff --git a/webpack.electron.config.js b/webpack.electron.config.js index 396d926aa..daf024dc8 100644 --- a/webpack.electron.config.js +++ b/webpack.electron.config.js @@ -4,7 +4,7 @@ const webpack = require('webpack'); const merge = require('webpack-merge'); const baseConfig = require('./webpack.base.config.js'); const CopyWebpackPlugin = require('copy-webpack-plugin'); -const { DefinePlugin } = require('webpack'); +const { DefinePlugin, ProvidePlugin } = require('webpack'); const { getIfUtils, removeEmpty } = require('webpack-config-utils'); const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer'); @@ -111,6 +111,9 @@ const renderConfig = { new DefinePlugin({ IS_WEB: JSON.stringify(false), }), + new ProvidePlugin({ + __: ['i18n.js', '__'], + }), ], }; diff --git a/webpack.web.config.js b/webpack.web.config.js index 9cf1a6a38..1a1c26fda 100644 --- a/webpack.web.config.js +++ b/webpack.web.config.js @@ -3,7 +3,7 @@ const path = require('path'); const merge = require('webpack-merge'); const baseConfig = require('./webpack.base.config.js'); const CopyWebpackPlugin = require('copy-webpack-plugin'); -const { DefinePlugin } = require('webpack'); +const { DefinePlugin, ProvidePlugin } = require('webpack'); const STATIC_ROOT = path.resolve(__dirname, 'static/'); const DIST_ROOT = path.resolve(__dirname, 'dist/'); @@ -70,6 +70,9 @@ const webConfig = { new DefinePlugin({ IS_WEB: JSON.stringify(true), }), + new ProvidePlugin({ + __: ['i18n.js', '__'], + }), ], };