mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Enable source maps for debugging purpose in all webpack modules
(except for vendor, and codemirror).
This commit is contained in:
parent
845025db8f
commit
33bd9d4782
@ -91,6 +91,15 @@ const hardSourceWebpackPlugin = new HardSourceWebpackPlugin({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Helps in debugging each single file, it extracts the module files
|
||||||
|
// from bundle so that they are accessible by search in Chrome's sources panel.
|
||||||
|
// 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'],
|
||||||
|
columns: false,
|
||||||
|
});
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
stats: { children: false },
|
stats: { children: false },
|
||||||
// The base directory, an absolute path, for resolving entry points and loaders
|
// The base directory, an absolute path, for resolving entry points and loaders
|
||||||
@ -306,5 +315,6 @@ module.exports = {
|
|||||||
pgAdminCommonChunks,
|
pgAdminCommonChunks,
|
||||||
providePlugin,
|
providePlugin,
|
||||||
hardSourceWebpackPlugin,
|
hardSourceWebpackPlugin,
|
||||||
|
sourceMapDevToolPlugin,
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user