Add source-map-loader for easier debugging (#28580)
of matrix-widget-api and other libs Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
c34cbd011d
commit
8e213c5d34
3 changed files with 19 additions and 2 deletions
|
@ -238,6 +238,9 @@ module.exports = (env, argv) => {
|
|||
},
|
||||
},
|
||||
|
||||
// Some of our deps have broken source maps, so we have to ignore warnings or exclude them one-by-one
|
||||
ignoreWarnings: [/Failed to parse source map/],
|
||||
|
||||
module: {
|
||||
noParse: [
|
||||
// for cross platform compatibility use [\\\/] as the path separator
|
||||
|
@ -250,6 +253,11 @@ module.exports = (env, argv) => {
|
|||
/highlight\.js[\\/]lib[\\/]languages/,
|
||||
],
|
||||
rules: [
|
||||
{
|
||||
test: /\.js$/,
|
||||
enforce: "pre",
|
||||
use: ["source-map-loader"],
|
||||
},
|
||||
{
|
||||
test: /\.(ts|js)x?$/,
|
||||
include: (f) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue