From d159241f0fdf0f9c0964608e89143e26c9b96611 Mon Sep 17 00:00:00 2001 From: David Mehren Date: Sat, 14 Aug 2021 16:18:23 +0200 Subject: [PATCH] Exclude mathjax a11y files from ESBuild `MathJax/extensions/a11y/mathmaps` contains .js files that are not actually valid JavaScript, tripping up ESBuild. This excludes them from the minification step Signed-off-by: David Mehren --- webpack.prod.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webpack.prod.js b/webpack.prod.js index ca6981722..69d77fb10 100644 --- a/webpack.prod.js +++ b/webpack.prod.js @@ -16,7 +16,8 @@ module.exports = [ optimization: { minimizer: [ new ESBuildMinifyPlugin({ - target: 'es2015' + target: 'es2015', + exclude: ['MathJax/extensions/a11y/mathmaps'] }) ], splitChunks: {