fix: use native fetch when node is disabled

This commit is contained in:
Pooya Parsa 2020-11-14 01:11:26 +01:00
parent 9e638e96fa
commit a5e70eb4b0

View File

@ -72,6 +72,7 @@ export const getRollupConfig = (config: SLSOptions) => {
inherits: require.resolve('inherits/inherits_browser.js'), inherits: require.resolve('inherits/inherits_browser.js'),
// Custom // Custom
'node-fetch': '~mocks/custom/node-fetch',
depd: '~mocks/custom/depd', depd: '~mocks/custom/depd',
etag: '~mocks/generic/noop', etag: '~mocks/generic/noop',