davidmarkclements / rfdc

Really Fast Deep Clone
MIT License
643 stars 25 forks source link

UMD wrapper to able use rfdc in browsers #5

Closed STUkh closed 5 years ago

STUkh commented 5 years ago

Good approach, but only one modular system support unable to use this plugin in different envs, UMD wrapper will be good approach to make rfdc consistent.

davidmarkclements commented 5 years ago

this is already compatible with browserify, webpack, babel... so its fully interoperable with any envs that have a bundling step

if you're in the amazing position where bundling isn't necessary, you can get rfdc as a global using bundle.run:

<script src=https://bundle.run/rfdc@1.1.4></script>

If you're referring to ES6 modules, UMD doesn't support them