Browser usage
See original GitHub issueI’m trying to use this in my Polymer app, so I can’t use the regular Node package, but when I try to import this as <script src="../../../node_modules/apisauce/dist/apisauce.js"></script>
it throws me the following error on browser:
Uncaught ReferenceError: exports is not defined
at apisauce.js:1
Any thoughts on making this compatible with the browser?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Statcounter Global Stats - Browser, OS, Search Engine ...
Tracks the Usage Share of Search Engines, Browsers and Operating Systems including Mobile from over 5 billion monthly page views.
Read more >Browser Statistics - W3Schools
2022 Chrome Edge Firefox Safari Opera
October 79.9 % 8.1 % 5.2 % 4.2 % 1.7 %
September 80.9 % 7.8 % 5.2 % 3.7...
Read more >Usage share of web browsers - Wikipedia
Chrome, 65.87%, 64.67 % ; Safari, 18.61%, 19.06% ; Edge, 4.13%, 4.10% ; Firefox, 3.26%, 3.66% ...
Read more >"Can I use" usage table - CanIUse
Browser usage table, based on data from StatCounter GlobalStats. Information for mobile versions is extrapolated from other sources.
Read more >85+ Web Browser Market Share & Usage Statistics (2022)
At 48.51% Google Chrome is the most popular used across all platforms in terms of US browser market share. In second place is...
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
I’m going to back pedal a bit on this because I don’t have a use case for this personally.
Contributions are more than welcome. I’d love to support vanilla browsers, but I don’t know how. Besides packagers are now so prevalent… and nowadays zero config is the buzz word du jour.
I’ve tried with almost all versions, but it seems that all of them depend on
Object.defineProperty(exports,"__esModule",{value:!0})
which is not supported by any browser