Skip to content

fix: correct browser export to match node export#22

Open
jacobheun wants to merge 1 commit intomysticatea:masterfrom
jacobheun:patch-1
Open

fix: correct browser export to match node export#22
jacobheun wants to merge 1 commit intomysticatea:masterfrom
jacobheun:patch-1

Conversation

@jacobheun
Copy link
Copy Markdown

If you currently attempt to import AbortController via const { AbortController } = require('abort-controller'), it will work in Node but be undefined in browsers. This updates browser.js to be consistent with the exports from abort-controller.js in the dist folder.

If you currently attempt to import AbortController via `const { AbortController } = require('abort-controller')`, it will work in Node but be undefined in browsers. This updates browser.js to be consistent with the exports from abort-controller.js in the dist folder.
@wemeetagain
Copy link
Copy Markdown

@mysticatea friendly ping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants