From 22879318828aea809d796cadfb62d2867153cc35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Wed, 11 Aug 2021 19:55:41 +0200 Subject: [PATCH] Fixing a weird import bug on react-day-picker (#933) Co-authored-by: Scott Bishel --- mattermost-plugin/webapp/webpack.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mattermost-plugin/webapp/webpack.config.js b/mattermost-plugin/webapp/webpack.config.js index c19c79bfc..d726557a7 100644 --- a/mattermost-plugin/webapp/webpack.config.js +++ b/mattermost-plugin/webapp/webpack.config.js @@ -55,6 +55,9 @@ module.exports = { 'node_modules', path.resolve(__dirname), ], + alias: { + moment: path.resolve(__dirname, '../../webapp/node_modules/moment/'), + }, extensions: ['*', '.js', '.jsx', '.ts', '.tsx'], }, module: {