0.7.0 webpack oddity...
See original GitHub issue
version info:
+flexsearch@nextapps-de/flexsearch#0.7.0:
+ version "0.7.0"
+ resolved "https://codeload.github.com/nextapps-de/flexsearch/tar.gz/128395ffbe96fcb636d40b0828ca4521e2cf7669"
I’ve added flex search to the reducer for now, the idea is that once all “users” are loaded from the server, client will build an index.
+import FlexSearch from "flexsearch";
...
+ {
+ // Maybe own action...
+ const index = new FlexSearch({encode: "advanced", tokenize: "strict"});
+ Object.entires(draft.users).map(([k, v]) => index.add(k, v));
+ }
Here, draft
is an immer
draft, and I expect v
to be an object of shape {username: "xxx", email: "eee", ...}
.
I’ll dig into this more tomorrow ofc, just wanted to give an early hail-shot 😃
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Target | webpack
Webpack can compile for multiple environments or targets. To understand what a target is in detail, read through the targets concept page.
Read more >CHANGELOG-1.md - gists · GitHub
In a special one-off release as part of the strategy to get a version of npm into Node LTS that works with the...
Read more >universal-webpack - npm
This library generates client-side and server-side configuration for Webpack therefore enabling seamless client-side/server-side Webpack builds.
Read more >How to Prevent Webpack Error after npm Install?
In your devDependencies, try downgrading this: awesome-typescript-loader": "3.2.1". to this: awesome-typescript-loader": "2.2.4". If it still doesn't work, ...
Read more >webpack-style-preset - npm Package Health Analysis - Snyk
Learn more about webpack-style-preset: package health score, popularity, ... Ensure you're using the healthiest npm packages ... 0.7.0.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
import FlexSearch from 'flexsearch/dist/module/flexsearch';
This import works as expected.
Please use the latest version which solves that issue.