From 00803950bf3defc7d39443a695d29205a9a73781 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> Date: Fri, 1 Sep 2023 15:37:09 +0100 Subject: [PATCH] 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. --- src/vector/index.html | 11 ++++++++++- webpack.config.js | 11 +++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/src/vector/index.html b/src/vector/index.html index 9f41e6c216..962de99d4a 100644 --- a/src/vector/index.html +++ b/src/vector/index.html @@ -61,7 +61,16 @@
- + +<% + // insert +<% + } + } +%> diff --git a/webpack.config.js b/webpack.config.js index 5df93113e8..f38a5caed0 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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, },