This script is used to replace docfx's lunr.js
search to fuse.js
based search.
To use this script. simply replace public/search-worker.min.js
with this gist content.
This script works only when using modern
template.
To support default
template.
it needs to replace import Fuse from
statement with equivalent code that don't use ESM.