From 4271c6522cca80e9c067be26e025fec4f570113a Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Sat, 14 Nov 2020 01:11:26 +0100 Subject: [PATCH] fix: use native fetch when node is disabled --- src/rollup/config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rollup/config.ts b/src/rollup/config.ts index d8df5a441b..b67b760b8b 100644 --- a/src/rollup/config.ts +++ b/src/rollup/config.ts @@ -72,6 +72,7 @@ export const getRollupConfig = (config: SLSOptions) => { inherits: require.resolve('inherits/inherits_browser.js'), // Custom + 'node-fetch': '~mocks/custom/node-fetch', depd: '~mocks/custom/depd', etag: '~mocks/generic/noop',