Skip to content

Commit

Permalink
chore(webpack): remove moment locale ignore, we don't use moment
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoMcA committed May 9, 2024
1 parent ae074e9 commit cf77437
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions client/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -538,15 +538,6 @@ function config(webpackEnv) {
};
},
}),
// Moment.js is an extremely popular library that bundles large locale files
// by default due to how webpack interprets its code. This is a practical
// solution that requires the user to opt into importing specific locales.
// https://github.com/jmblog/how-to-optimize-momentjs-with-webpack
// You can remove this if you don't use Moment.js:
new webpack.IgnorePlugin({
resourceRegExp: /^\.\/locale$/,
contextRegExp: /moment$/,
}),
// Generate a service worker script that will precache, and keep up to date,
// the HTML & assets that are part of the webpack build.
isEnvProduction &&
Expand Down

0 comments on commit cf77437

Please sign in to comment.