fix: dataset modal doesn't work in dev mode (#18658)

* fix: dataset modal in dev mode

* remove cache

* add comment
This commit is contained in:
Stephen Liu 2022-02-10 21:17:16 +08:00 committed by GitHub
parent 12cddb7ade
commit 82129753b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -344,6 +344,14 @@ const config = {
],
use: [babelLoader],
},
// react-hot-loader use "ProxyFacade", which is a wrapper for react Component
// see https://github.com/gaearon/react-hot-loader/issues/1311
// TODO: refactor recurseReactClone
{
test: /\.js$/,
include: /node_modules\/react-dom/,
use: ['react-hot-loader/webpack'],
},
{
test: /\.css$/,
include: [APP_DIR, /superset-ui.+\/src/],