paldepind / flyd

The minimalistic but powerful, modular, functional reactive programming library in JavaScript.
MIT License
1.56k stars 84 forks source link

add package.module #186

Closed futurist closed 6 years ago

futurist commented 6 years ago

When using <script type="module" src="https://unpkg.com/flyd@0.2.8"> feature in browser, throw an exception:

require is not defined

Demo here

The packed version flyd.js also not compatible with type=module script, this is a break from ES module system.

Should upgrade the bundle system to reflect both ES Module and classic UMD way.