promer94
promer94
https://bundlers.tooling.report/
I have made my attempt at https://github.com/promer94/hedgehog-lab-core # install ```bash npm i hedgehog-lab-core-test babel-template ``` And use it at my [fork](https://github.com/promer94/hedgehog-lab)
currently, i can't make babel-template being compiled correctly. But if it works, we can write web workers like this. ```js importScripts("https://unpkg.com/comlink/dist/umd/comlink.js"); importScripts("https://unpkg.com/core/dist/umd/core.js"); const compiler = { compile(source) { return core.compile(source)...
@lidangzzz can you upgrade babel-template to @babel/template, because i can't compile babel-template correctly but @babel/template works well. Upgrading to @babel/template will break current [operator-overload.js](https://github.com/lidangzzz/hedgehog-lab/blob/20a00d7d13f8748f57d9140f2466e56d76c065a8/hedgehog-lab/src/core/transpiler/operator-overload.js#L32) because ```js path.node.hasOwnProperty('_fromTemplate') ```` is always...
The type of `compare` fn in `swr/infinite` has been fixed in #2431
https://swr.vercel.app/blog/swr-v2.en-US#preloading-data
https://github.com/vercel/swr/pull/2546#issuecomment-1504645754
Example: https://codesandbox.io/s/swr-1952-forked-zqncu5?file=/src/App.js When using SWR * Fetcher will only be called once * Component will render twice (four times in strict mode) first `data -> undefined` second `data -> somthing`...
Please provide a valid reproduction for this problem.
Could you provide more information here. What bundler did you use here ? Is it a nexjs, vite or react-native project ?