Closed bglw closed 3 years ago
I see.
Or something behind a platform flag.
How?
Hmm, I was under the impression there was a supported way to check but it doesn't look like there is.
The checks in the browser-or-node package look simple enough to re-implement, though.
In saying that, I don't know if other packages provide any workaround for this, so maybe it's idiomatic for users to fix this in their bundler configuration... ๐ค
I don't know any way good enough. I removed the statically module loading, hope that would help?
Ah, that's perfect. Thanks a tonne! ๐ ๐
Hello ๐
v1.16.0 introduces a static fs import in parse/.ts:8. This breaks any frontend bundling that isn't stubbing out node libraries. In a default esbuild run I now get:
Could this be changed to something like a dynamic import behind a try? Loosely something like:
Or something behind a platform flag.