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 <git@herrmehren.de>
This commit is contained in:
David Mehren 2021-08-14 16:18:23 +02:00
parent 0c8ac678a3
commit d159241f0f
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3

View file

@ -16,7 +16,8 @@ module.exports = [
optimization: {
minimizer: [
new ESBuildMinifyPlugin({
target: 'es2015'
target: 'es2015',
exclude: ['MathJax/extensions/a11y/mathmaps']
})
],
splitChunks: {