Skip to content

Commit

Permalink
add polyfill for querystring
Browse files Browse the repository at this point in the history
  • Loading branch information
yyanwang committed Dec 10, 2024
1 parent 9b95caf commit 2f814e0
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ module.exports = ({ getUserConfig, mode }) => {
fallback: {
url: false,
path: false,
querystring: false,
querystring: require.resolve('querystring-es3'),
},
},
module: {
Expand Down
1 change: 1 addition & 0 deletions tools/scripts-config-react-webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"postcss": "^8.4.47",
"postcss-loader": "^8.1.1",
"postcss-safe-parser": "^6.0.0",
"querystring-es3": "^0.2.1",
"regenerator-runtime": "^0.13.11",
"resolve-url-loader": "^5.0.0",
"sass": "^1.80.5",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const defaultMain = {
fallback: {
...config.resolve.fallback,
path: false,
querystring: false,
querystring: require.resolve('querystring-es3'),
},
},
};
Expand Down
5 changes: 3 additions & 2 deletions tools/scripts-config-storybook-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,20 @@
"@storybook/addon-interactions": "^7.6.20",
"@storybook/addon-links": "^7.6.20",
"@storybook/addon-storysource": "^7.6.20",
"@storybook/source-loader": "^7.6.20",
"@storybook/jest": "^0.2.3",
"@storybook/preset-scss": "^1.0.3",
"@storybook/react": "^7.6.20",
"@storybook/react-webpack5": "^7.6.20",
"@storybook/source-loader": "^7.6.20",
"@storybook/testing-library": "^0.2.2",
"@talend/scripts-config-react-webpack": "^16.8.1",
"@talend/dynamic-cdn-webpack-plugin": "^14.0.0",
"@talend/scripts-config-react-webpack": "^16.8.1",
"assert": "^2.1.0",
"i18next-http-backend": "^1.4.5",
"lodash": "^4.17.21",
"msw": "^2.6.6",
"msw-storybook-addon": "^2.0.4",
"querystring-es3": "^0.2.1",
"storybook": "^7.6.20",
"util": "^0.12.5"
},
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15764,6 +15764,11 @@ [email protected], qs@^6.10.0, qs@^6.10.3, qs@^6.11.0, qs@^6.12.3:
dependencies:
side-channel "^1.0.6"

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"
Expand Down

0 comments on commit 2f814e0

Please sign in to comment.