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 4fcdd8ba5a
commit a79557c87c
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=16000
which vite