mirror of https://github.com/apache/superset.git
fix(plugin-chart-handlebars): Update webpack/babel config to fix build/runtime warnings/errors (#21779)
This commit is contained in:
parent
3936e9ed5f
commit
d5b4bdeb72
|
@ -103,4 +103,10 @@ module.exports = {
|
|||
plugins: [],
|
||||
},
|
||||
},
|
||||
overrides: [
|
||||
{
|
||||
test: './plugins/plugin-chart-handlebars/node_modules/just-handlebars-helpers/*',
|
||||
sourceType: 'unambiguous',
|
||||
},
|
||||
],
|
||||
};
|
||||
|
|
|
@ -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: {
|
||||
|
|
Loading…
Reference in New Issue