diff options
author | Wouter Admiraal <wouter.admiraal@sonarsource.com> | 2020-06-26 13:57:20 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2020-06-30 20:05:42 +0000 |
commit | e4a472c43a9b7a5fd5592fa3d00cc0c35c2ab837 (patch) | |
tree | 879ec425a40ce5b62f1b735999fa6f3efe7e0dd1 /server/sonar-web/config | |
parent | 831188a7e86eb9b52cba3626154f9cae8ebad71b (diff) | |
download | sonarqube-e4a472c43a9b7a5fd5592fa3d00cc0c35c2ab837.tar.gz sonarqube-e4a472c43a9b7a5fd5592fa3d00cc0c35c2ab837.zip |
SONAR-13567 Fix measure graph zoom error
Diffstat (limited to 'server/sonar-web/config')
-rw-r--r-- | server/sonar-web/config/webpack.config.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/server/sonar-web/config/webpack.config.js b/server/sonar-web/config/webpack.config.js index 1efb0408457..1744d7cee5d 100644 --- a/server/sonar-web/config/webpack.config.js +++ b/server/sonar-web/config/webpack.config.js @@ -70,7 +70,12 @@ module.exports = ({ production = true, release = false }) => { // This avoid having multi instance of react when developing with yarn link on sonar-ui-common // See https://reactjs.org/warnings/invalid-hook-call-warning.html react: path.resolve(__dirname, '../node_modules/react'), - 'react-dom': path.resolve(__dirname, '../node_modules/react-dom') + 'react-dom': path.resolve(__dirname, '../node_modules/react-dom'), + // d3-selection exports an event object, which requires live-binding. + // In order to support this, we need to tell Webpack to NOT look into + // the dist/ folder of this module, but in the src/ folder instead. + // See https://github.com/d3/d3-selection#event + 'd3-selection': path.resolve(__dirname, '../node_modules/d3-selection/src/index.js') } }, optimization: { |