Use zen-observable as ESM
See original GitHub issueThe last version of zen-observable
has an ESM export: esm.js
.
You can also check it at unpkg: https://unpkg.com/browse/zen-observable@0.8.15/
It would be great that Apollo Client uses that instead of the CJS export (index.js
).
That way, zen-observable
works directly in the browser.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:8
- Comments:11 (10 by maintainers)
Top Results From Across the Web
How to use the zen-observable-ts function in zen ... - Snyk
To help you get started, we've selected a few zen-observable-ts examples, based on popular ways it is used in public projects.
Read more >Zen-observable-ts - npm.io
zen-observable -ts. Thin wrapper around zen-observable and @types/zen-observable , to support ESM exports as well as CommonJS exports, with TypeScript types ...
Read more >zen-observable-ts examples - CodeSandbox
Learn how to use zen-observable-ts by viewing and forking zen-observable-ts example apps on CodeSandbox.
Read more >zen-observable CDN by jsDelivr - A CDN for npm and GitHub
zen-observable CDN Files ... No files selected. Select the files you want to use using the switches on the left. ... Sadly, this...
Read more >zen-observable-ts@1.1.0 - jsDocs.io
Documentation for npm package zen-observable-ts@1.1.0 - jsDocs.io. ... and @types/zen-observable, to support ESM exports as well as CommonJS exports ...
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 FreeTop 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
Top GitHub Comments
@abdonrd Thanks for following through and opening that PR! Since there’s been no response, I’m moving ahead with a wrapping strategy, using the package name
zen-observable-ts
: #7615. If your PR ever gets merged (🤞 ), we can go back to usingzen-observable
directly.These changes should be released in Apollo Client v3.4 (the next minor version).
@benjamn yes, looking forward to the release!
I’m very glad to read that there will be a solution for
fast-json-stable-stringify
! 👏🏻“this little package called react”. Yeah, little package 😂 Personally I think the best option would be to remove React from
@apollo/client
(that works for any) and have something like@apollo/client/react
with React. But yes, for now I use@apollo/client/core
.