diff --git a/superset-frontend/babel.config.js b/superset-frontend/babel.config.js index 11bed49eee23b..095c5836cf00f 100644 --- a/superset-frontend/babel.config.js +++ b/superset-frontend/babel.config.js @@ -103,4 +103,10 @@ module.exports = { plugins: [], }, }, + overrides: [ + { + test: './plugins/plugin-chart-handlebars/node_modules/just-handlebars-helpers/*', + sourceType: 'unambiguous', + }, + ], }; diff --git a/superset-frontend/webpack.config.js b/superset-frontend/webpack.config.js index f2919b0d26f5c..9f9e03974c230 100644 --- a/superset-frontend/webpack.config.js +++ b/superset-frontend/webpack.config.js @@ -289,6 +289,9 @@ const config = { // AntD version conflict has been resolved antd: path.resolve(path.join(APP_DIR, './node_modules/antd')), react: path.resolve(path.join(APP_DIR, './node_modules/react')), + // 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', }, extensions: ['.ts', '.tsx', '.js', '.jsx', '.yml'], fallback: {