Ensure popper.js is installed when needed. Fixes #4219

This commit is contained in:
Dave Page 2019-04-30 13:57:10 +01:00
parent 34b59da526
commit f02f91cbf1
2 changed files with 4 additions and 2 deletions

View File

@ -15,3 +15,4 @@ Bug fixes
*********
| `Bug #4218 <https://redmine.postgresql.org/issues/4218>`_ - Properly assign dropdownParent in Select2 controls.
| `Bug #4219 <https://redmine.postgresql.org/issues/4219>`_ - Ensure popper.js is installed when needed.

View File

@ -25,6 +25,7 @@ const extractStyle = new MiniCssExtractPlugin({
allChunks: true,
});
const envType = PRODUCTION ? 'production': 'development';
const devToolVal = PRODUCTION ? false : 'eval';
const HardSourceWebpackPlugin = require('hard-source-webpack-plugin');
// Expose libraries in app context so they need not to
@ -68,7 +69,7 @@ const hardSourceWebpackPlugin = new HardSourceWebpackPlugin({
// Reference: https://webpack.js.org/plugins/source-map-dev-tool-plugin/#components/sidebar/sidebar.jsx
const sourceMapDevToolPlugin = new webpack.SourceMapDevToolPlugin({
filename: '[name].js.map',
exclude: ['vendor.js', 'codemirror.js'],
exclude: ['vendor.js', 'codemirror.js', 'popper.js'],
columns: false,
});
@ -123,7 +124,7 @@ pushModulesCss(path.join(__dirname,'./pgadmin'), pgadminStyles);
module.exports = {
mode: envType,
devtool: false,
devtool: devToolVal,
stats: { children: false },
// The base directory, an absolute path, for resolving entry points and loaders
// from configuration.