diff --git a/package.json b/package.json index 7253723..8473fe4 100644 --- a/package.json +++ b/package.json @@ -40,6 +40,7 @@ "node-fetch": "^2.6.1", "pg": "^8.9.0", "postcss-preset-env": "^6.7.0", + "querystring-es3": "^0.2.1", "rfc4648": "^1.4.0", "string-template": "^1.0.0" }, diff --git a/webpack.config.js b/webpack.config.js index 2704073..0c41789 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -41,6 +41,7 @@ module.exports = { }, resolve: { extensions: ['.ts', '.js'], + fallback: { "querystring": require.resolve("querystring-es3") } }, plugins: [ new CleanWebpackPlugin({ cleanStaleWebpackAssets: false }), diff --git a/yarn.lock b/yarn.lock index 2c01485..4b53dba 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5675,6 +5675,11 @@ qs@~6.5.2: resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.3.tgz#3aeeffc91967ef6e35c0e488ef46fb296ab76aad" integrity sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA== +querystring-es3@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/querystring-es3/-/querystring-es3-0.2.1.tgz#9ec61f79049875707d69414596fd907a4d711e73" + integrity sha512-773xhDQnZBMFobEiztv8LIl70ch5MSF/jUQVlhwFyBILqq96anmoctVIYz+ZRp0qbCKATTn6ev02M3r7Ga5vqA== + querystringify@^2.1.1: version "2.2.0" resolved "https://registry.yarnpkg.com/querystringify/-/querystringify-2.2.0.tgz#3345941b4153cb9d082d8eee4cda2016a9aef7f6"