diff --git a/docs/en_US/release_notes_4_7.rst b/docs/en_US/release_notes_4_7.rst index 9d9e4076b..9b3b66554 100644 --- a/docs/en_US/release_notes_4_7.rst +++ b/docs/en_US/release_notes_4_7.rst @@ -15,3 +15,4 @@ Bug fixes ********* | `Bug #4218 `_ - Properly assign dropdownParent in Select2 controls. +| `Bug #4219 `_ - Ensure popper.js is installed when needed. \ No newline at end of file diff --git a/web/webpack.config.js b/web/webpack.config.js index 33227558b..5ca3c88a1 100644 --- a/web/webpack.config.js +++ b/web/webpack.config.js @@ -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.