From ebe56dd68edd9668e251eb108f807aae061cc689 Mon Sep 17 00:00:00 2001 From: sergei-deriv Date: Mon, 5 Aug 2024 17:43:42 +0300 Subject: [PATCH] feat: move webpack plugins to default plugins --- 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: [ {