From ed4311ac1af7d685e5342e6af4d6a1acca8e8356 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Tue, 16 Feb 2021 12:01:32 -0800 Subject: [PATCH] Filter unsuported locales --- packages/webapp/webpack.common.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/webapp/webpack.common.js b/packages/webapp/webpack.common.js index 4cfa9d02..02d51bc2 100644 --- a/packages/webapp/webpack.common.js +++ b/packages/webapp/webpack.common.js @@ -1,7 +1,11 @@ const path = require('path'); +const webpack = require('webpack') + const { CleanWebpackPlugin } = require('clean-webpack-plugin'); const CopyWebpackPlugin = require('copy-webpack-plugin'); +webpack + module.exports = { entry: { app: path.join(__dirname, 'src', 'index.tsx') @@ -60,6 +64,10 @@ module.exports = { ] } }] - }) - ] + }), + // Ignore all locale files of moment.js + new webpack.ContextReplacementPlugin( + /moment[\/\\]locale$/, + /de$|es$|fr$/ + )] } \ No newline at end of file