Move the unhomoglyph data to its own file (#26095)

This solves problems wherein the javascript debugger would get confused and
show the execution point two lines away from the source.
This commit is contained in:
Richard van der Hoff 2023-09-01 15:37:09 +01:00 committed by GitHub
parent bff5b6e8e2
commit 00803950bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 1 deletions

View file

@ -171,6 +171,17 @@ module.exports = (env, argv) => {
enforce: true,
// Do not add `chunks: 'all'` here because you'll break the app entry point.
},
// put the unhomoglyph data in its own file. It contains
// magic characters which mess up line numbers in the
// javascript debugger.
unhomoglyph_data: {
name: "unhomoglyph_data",
test: /unhomoglyph\/data\.json$/,
enforce: true,
chunks: "all",
},
default: {
reuseExistingChunk: true,
},