#134 - Async loading of minisearch cache

Using a custom build of minisearch
This commit is contained in:
Simon Cambier
2024-05-23 21:38:46 +02:00
parent dcfb77f551
commit 5f5417f0ff
5 changed files with 2662 additions and 3184 deletions

View File

@@ -57,6 +57,14 @@ build({
to: ['./'],
},
}),
{
name: 'resolve-minisearch',
setup(build) {
build.onResolve({ filter: /^minisearch$/ }, () => {
return { path: path.resolve('node_modules/minisearch/src/MiniSearch.ts') };
});
},
},
],
format: 'cjs',
watch: !prod,