Skip to content

Commit

Permalink
config: Explicitly retain en-us locale for Moment JS
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Macey authored and blarghmatey committed Jan 19, 2024
1 parent 3d4e220 commit 469e428
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/public/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ module.exports = function (env, argv) {
new BundleTracker({
filename: path.resolve(__dirname, "../../webpack-stats/default.json")
}),
new MomentLocalesPlugin() // Removes all but the default locale, 'en'
new MomentLocalesPlugin(localesToKeep: ["en-us"]) // Removes all but the default locale, 'en'
].concat(isProduction ? [
new webpack.LoaderOptionsPlugin({
minimize: true
Expand Down

0 comments on commit 469e428

Please sign in to comment.