jameslnewell / xhr-mock

Utility for mocking XMLHttpRequest.
196 stars 48 forks source link

Why proxy promise is not exported by default in dist? #54

Closed varp closed 6 years ago

varp commented 6 years ago

I'm using xhr-mock.js from unpkg.com

jameslnewell commented 6 years ago

I’ve been waiting for someone to bring this up 😁

Because I don’t know how to create multiple exports in UMD. Please make a suggestion and we’ll implement it!

varp commented 6 years ago

I'll see what can I do 😀Thx

jameslnewell commented 6 years ago

Any ideas @varp?

varp commented 6 years ago

Nop. I have no time to work on it. As a workaround, I just started to use browserify

webextensions commented 5 years ago

To get the browserified version, in folder packages/xhr-mock, execute: $ browserify --entry lib/index.js --standalone XHRMock --outfile xhr-mock.browserified.js

and use XHRMock.default