fix(ky-universal): server importing es bundle (#121)

Co-authored-by: pooya parsa <pyapar@gmail.com>
master
hiroki 2020-08-20 14:51:07 -04:00 committed by GitHub
parent 4ef88e4182
commit 029dea6f04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
const fetch = require('node-fetch') const fetch = process.server ? require('node-fetch/lib/index.js') : require('node-fetch/browser.js')
const AbortController = require('abort-controller') const AbortController = require('abort-controller')
const TEN_MEGABYTES = 1000 * 1000 * 10 const TEN_MEGABYTES = 1000 * 1000 * 10