diff --git a/superset-frontend/webpack.config.js b/superset-frontend/webpack.config.js index d71fa2a19561..b2e574b932f1 100644 --- a/superset-frontend/webpack.config.js +++ b/superset-frontend/webpack.config.js @@ -288,6 +288,12 @@ const config = { // TODO: remove Handlebars alias once Handlebars NPM package has been updated to // correctly support webpack import (https://github.com/handlebars-lang/handlebars.js/issues/953) handlebars: 'handlebars/dist/handlebars.js', + /* + Temporary workaround to prevent Webpack from resolving moment locale + files, which are unnecessary for this project and causing build warnings. + This prevents "Module not found" errors for moment locale files. + */ + 'moment/min/moment-with-locales': false, }, extensions: ['.ts', '.tsx', '.js', '.jsx', '.yml'], fallback: {