From 4f525863f74e30676a7a1165607085ee53ca0ce5 Mon Sep 17 00:00:00 2001 From: smori Date: Wed, 27 Sep 2023 02:32:29 +0900 Subject: [PATCH] Move definition of flexSearchData --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 4a6109e..338c6f6 100644 --- a/src/index.js +++ b/src/index.js @@ -7,8 +7,6 @@ const path = require('path'); const tokenizer = require('./tokenizer'); const TokenizerBase = require('./tokenizer/tokenizer-base'); -const flexSearchData = {}; - /** * @param {Object} options * @param {Context} ctx @@ -38,6 +36,8 @@ module.exports = (options, ctx) => { } })(searchPaths); + const flexSearchData = {}; + return { define: { FLEX_SEARCH_HOTKEYS: searchHotKeys,