diff --git a/package.json b/package.json index df06e05..c2e0666 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "statsig-node", - "version": "4.15.2", + "version": "4.15.3", "description": "Statsig Node.js SDK for usage in multi-user server environments.", "main": "dist/src/index.js", "scripts": { diff --git a/src/utils/safeFetch.js b/src/utils/safeFetch.js index 5384de5..2784700 100644 --- a/src/utils/safeFetch.js +++ b/src/utils/safeFetch.js @@ -1,7 +1,8 @@ let nodeFetch = null; try { - nodeFetch = require('node-fetch'); -} catch(err) { + var webpackBypass = ''; + nodeFetch = require(`node-fetch${webpackBypass}`); +} catch (err) { // Ignore }