Skip to content

Commit

Permalink
feat: move webpack plugins to default plugins (binary-com#16367)
Browse files Browse the repository at this point in the history
  • Loading branch information
sergei-deriv committed Aug 8, 2024
1 parent cd6418c commit a8ced74
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions packages/appstore/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }),
];
Expand Down Expand Up @@ -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: [
{
Expand Down

0 comments on commit a8ced74

Please sign in to comment.