Performance: load NSI when needed, should decrease bundle size

This commit is contained in:
Pieter Vander Vennet 2025-01-02 03:38:15 +01:00
parent f476e61a8f
commit d338eadac8
7 changed files with 122 additions and 76 deletions

View file

@ -24,6 +24,8 @@ else
exit 1
fi
cp node_modules/name-suggestion-index/dist/nsi.json public/assets/data/nsi
cp node_modules/name-suggestion-index/dist/wikidata.min.json public/assets/data/nsi
export NODE_OPTIONS=--max-old-space-size=20000
which vite