Skip to content

improve webpack support#78

Open
iugo wants to merge 1 commit intomikeal:masterfrom
zsqk:improve-webpack-support
Open

improve webpack support#78
iugo wants to merge 1 commit intomikeal:masterfrom
zsqk:improve-webpack-support

Conversation

@iugo
Copy link

@iugo iugo commented Mar 14, 2019

If use webpack, require('node-fetch') is not imported by default. Then the fetch is a undefined, not a function.

@ilanc suggested using require('node-fetch').default.

webpack/webpack#4742
node-fetch/node-fetch#450 (comment)

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.

1 participant