fix(plugin-chart-handlebars): Update webpack/babel config to fix build/runtime warnings/errors (#21779)

This commit is contained in:
Cody Leff 2022-10-12 21:32:31 -06:00 committed by GitHub
parent 3936e9ed5f
commit d5b4bdeb72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -103,4 +103,10 @@ module.exports = {
plugins: [],
},
},
overrides: [
{
test: './plugins/plugin-chart-handlebars/node_modules/just-handlebars-helpers/*',
sourceType: 'unambiguous',
},
],
};

View File

@ -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: {