Please package the distribution js as a UMD.
See original GitHub issueFirstly, thanks for this brilliant library. Love this project and have used it in production without many problems.
Just something I want to give back to the devs/maintainers.
-
It would be ideal to distribute the files as a UMD instead of a single top-level function. Here’s an example of a library distributed as such https://github.com/521dimensions/amplitudejs
-
In some frameworks, the code is passed as a string to
evalfunction which doesn’t add the library to the global scope which may present some issues. Here’s a discussion which maybe helpful https://meta.discourse.org/t/a-question-regiarding-loading-js-libraries-via-register-asset/156003
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
How are UMD and CommonJS (CJS) package folders ...
Both folders have cjs and umd folder and they have a lot of JavaScript files. For me it's unable to find difference between...
Read more >UNPKG
UNPKG. unpkg is a fast, global content delivery network for everything on npm. Use it to quickly and easily load any file from...
Read more >Setting up multi-platform npm packages - 2ality
The idea of UMD is that you can implement a JavaScript module in such a manner that it supports (up to) three formats...
Read more >Understanding (all) JavaScript module formats and tools
Webpack module: bundle from CJS, AMD, ES modules ... (The latest version of jQuery follows the UMD module, ... Free delivery available.
Read more >Getting Started with Bryntum Grid in JavaScript
If you prefer to use npm, please visit the dedicated Quick Start here. ... grid.umd.js, UMD format bundle with WebComponents ...
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 Free
Top 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

I wouldn’t mind. What do you think @muaz-khan?
https://github.com/muaz-khan/RecordRTC/pull/664
Here’s my PR for that. @danpastori can you take a look ?