Closed gttom closed 4 months ago
The UMD bundle is broken. Since you cannot use multiple versions of Preact at the same time but the UMD bundle cannot access the Preact version you're using the UMD bundle is effectively broken. To work around this you can bundle yourself and ensure that Preact is deduplicated. We should probably remove the UMD bundle altogether to prevent this issue in the future.
I found during testing that it works properly when used in the node.js environment. But it won’t work properly when introduced using UMD in a browser environment. The introduction method is as follows:
I want to know the reason for this anomaly?