mirror of
https://github.com/apache/superset.git
synced 2026-06-04 07:09:22 +00:00
Build: fix hot reload for charts (#9400)
* Fix hot reload for charts * Override tsc options for plugins Plugins will sometimes have their own `tsconfig.json`, which will interfere with the dev server config if configured inappropriately. This change makes sure `tsc` (and `ts-loader`) always compiles to `esnext` modules, so we don't get "Uncaught ReferenceError: exports is not defined" error.
This commit is contained in:
@@ -133,7 +133,8 @@ class Chart extends React.Component {
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
// `cacheBusterProp` is nnjected by react-hot-loader
|
||||
return this.props.cacheBusterProp !== nextProps.cacheBusterProp;
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
|
||||
Reference in New Issue
Block a user