Commit 310f2582 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'vs-ignore-moment-dependency-for-pikaday' into 'master'

Ignore moment.js dependency for pikaday

See merge request gitlab-org/gitlab!34053
parents f0abb5aa 6c6d5042
......@@ -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: {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment