From 84eee58c5ab17850f2f210259390a9e18955ee85 Mon Sep 17 00:00:00 2001 From: eliot-akira Date: Sun, 3 Oct 2021 03:41:44 +0200 Subject: [PATCH] Use regular expression literal instead of RegExp --- webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index f3b76fb..94e507f 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -27,7 +27,7 @@ module.exports = (env, argv) => { plugins: [ new webpack.NormalModuleReplacementPlugin(new RegExp(path.resolve(__dirname, 'lib/storage.js')), path.resolve(__dirname, 'browser-version/lib/storage.js')), new webpack.NormalModuleReplacementPlugin(new RegExp(path.resolve(__dirname, 'lib/customUtils.js')), path.resolve(__dirname, 'browser-version/lib/customUtils.js')), - new webpack.NormalModuleReplacementPlugin(new RegExp('byline'), path.resolve(__dirname, 'browser-version/lib/byline.js')), + new webpack.NormalModuleReplacementPlugin(/byline/, path.resolve(__dirname, 'browser-version/lib/byline.js')), new webpack.ProvidePlugin({ process: 'process/browser', Buffer: ['buffer', 'Buffer'],