From a8ced74706d7cd4b808155016bb4026dc8be4d97 Mon Sep 17 00:00:00 2001 From: Sergei Baranovski <120570511+sergei-deriv@users.noreply.github.com> Date: Thu, 8 Aug 2024 12:29:19 +0300 Subject: [PATCH] feat: move webpack plugins to default plugins (#16367) --- packages/appstore/webpack.config.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/appstore/webpack.config.js b/packages/appstore/webpack.config.js index cfc55a8997e1..aeb44ebe458a 100644 --- a/packages/appstore/webpack.config.js +++ b/packages/appstore/webpack.config.js @@ -42,6 +42,10 @@ const svg_loaders = [ // const default_plugins = [new CleanWebpackPlugin(), new ForkTsCheckerWebpackPlugin()]; const default_plugins = [ // new BundleAnalyzerPlugin(), + new Dotenv(), + new DefinePlugin({ + 'process.env.TRUSTPILOT_API_KEY': JSON.stringify(process.env.TRUSTPILOT_API_KEY), + }), new IgnorePlugin({ resourceRegExp: /^\.\/locale$/, contextRegExp: /moment$/ }), new CircularDependencyPlugin({ exclude: /node_modules/, failOnError: true }), ]; @@ -87,12 +91,6 @@ module.exports = function (env) { }, extensions: ['.ts', '.tsx', '.js'], }, - plugins: [ - new Dotenv(), - new DefinePlugin({ - 'process.env.TRUSTPILOT_API_KEY': JSON.stringify(process.env.TRUSTPILOT_API_KEY), - }), - ], module: { rules: [ {