diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-08 21:08:27 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-08 21:08:27 +0300 |
commit | 99c01aa6867b91b8d2279eb8d32794ea90d5dcdc (patch) | |
tree | ae36b06dd962230381080d9e2a31385cea5f8609 /config/webpack.config.js | |
parent | 5693fb6ba7d21ba7b79775543a3f195eb989664b (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'config/webpack.config.js')
-rw-r--r-- | config/webpack.config.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/config/webpack.config.js b/config/webpack.config.js index 508407d3540..c17734ed3dc 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -514,6 +514,14 @@ module.exports = { // This one is used to check against "EE" properly in application code IS_EE: IS_EE ? 'window.gon && window.gon.ee' : JSON.stringify(false), }), + + /* Pikaday has a optional dependency to moment. + We are currently not utilizing moment. + Ignoring this import removes warning from our development build. + Upstream reference: + https://github.com/Pikaday/Pikaday/blob/5c1a7559be/pikaday.js#L14 + */ + new webpack.IgnorePlugin(/moment/, /pikaday/), ].filter(Boolean), devServer: { |