Node crashes when importing the fuzzyMatch like from the examples, e.g.
import createFuzzySearch from '@nozbe/microfuzz'
Seems that the issue is that it's being exported as a es6 module, while not properly being marked as such. Vite/Webpack can handle this no problem, but node gets confused.
See the following console log from server:
{
__esModule: true,
default: [Function: createFuzzySearch],
fuzzyMatch: [Function: fuzzyMatch],
normalizeText: [Function: normalizeText]
}
A simple solution would be to just not use default import/export, which should solve the issue by destructuring.