C
C
Would wonder, will we have a plan to fix the problem for Chrome 97 on Mac? 🙂
Thanks @rolandjitsu , I would have a try with `@12.0.2` and give an update back if met any other issues.
Hi, would you think about try..finally syntax? In react-dom there is such usage. If you can handle it, you could make react-dom runnable in Edge and old IE. ```js //...
Oh, sorry for my misunderstanding... Error in my case is promise.finally not found, I mistook. Thanks for your warm hint.
Hi @ChengOuyang, I found this issue interesting so being here to help. Firstly, I saw you were initializing the project directory `ts-pattern-test` with `npx` which is sub command of `npm`...
Emm..., changing `import` to `require`, I didn't see any difference though. Looks it still works: https://codesandbox.io/s/brave-buck-g0cvb8?file=/src/App.js
Hmm..., looks I can reproduce in my local. Looking into it...
Thanks @ChengOuyang. Let me take a look.
Looks when using `require('ts-pattern')`, `dist/index.cjs` in `ts-pattern` will get used. And, all `.cjs` files are treated as assets by CRA for now. So, the result is, you end up with...
For tip 1, the behavior of including which file is actually determined by [the exports field in package.json](https://github.com/gvergnaud/ts-pattern/blob/38dff6c4804cfed8b1786fbc5ea01a79584ec9b3/package.json#L7-L19). Here is how it works: https://webpack.js.org/guides/package-exports/. For tip 2, yep, agree, it...