Fix explain plan and geometry viewer issue. It's a regression of SonarQube fixes. Fixes #6239

This commit is contained in:
Aditya Toshniwal 2021-02-19 14:29:43 +05:30 committed by Akshay Joshi
parent 2570f7d75c
commit 32197a8405
2 changed files with 5 additions and 7 deletions

View File

@ -6,9 +6,10 @@
// This software is released under the PostgreSQL Licence
//
//////////////////////////////////////////////////////////////
/* This is used to change publicPath of webpack at runtime for loading chunks */
/* eslint-disable */
let __webpack_public_path__ = window.resourceBasePath;
/* This is used to change publicPath of webpack at runtime for loading chunks */
/* Do not add let, var, const to this variable */
__webpack_public_path__ = window.resourceBasePath;
/* eslint-enable */
import {launchDataGrid} from 'tools/datagrid/static/js/show_query_tool';

View File

@ -47,6 +47,8 @@ const providePlugin = new webpack.ProvidePlugin({
pgAdmin: 'pgadmin',
'moment': 'moment',
'window.moment':'moment',
process: 'process/browser',
Buffer: ['buffer', 'Buffer'],
});
// Helps in debugging each single file, it extracts the module files
@ -534,11 +536,6 @@ module.exports = [{
],
},
},
}, {
test: require.resolve('snapsvg'),
use: {
loader: 'imports-loader?this=>window,fix=>module.exports=0',
},
}].concat(themeCssRules('standard')),
// Prevent module from parsing through webpack, helps in reducing build time
noParse: [/moment.js/],