chaijs / sinon-chai

Extends Chai with assertions for the Sinon.JS mocking framework.
Other
1.09k stars 108 forks source link

Create and export ES module along side umd bundle #151

Open blikblum opened 3 years ago

blikblum commented 3 years ago

Fixes #138

This PR add the minimal non break change to support ES module and keep umd bundle as is today

It converts the main source file to ES module and adapt the test setup to load it (upgraded mocha to support running ES module)

It adds a rollup config that creates a umd bundle in prepublishOnly script. This bundle keeps the same custom functionality as is today (auto register in chai when used as script)