Skip to content

Commit 2f814e0

Browse files
committed
add polyfill for querystring
1 parent 9b95caf commit 2f814e0

File tree

5 files changed

+11
-4
lines changed

5 files changed

+11
-4
lines changed

tools/scripts-config-react-webpack/config/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ module.exports = ({ getUserConfig, mode }) => {
287287
fallback: {
288288
url: false,
289289
path: false,
290-
querystring: false,
290+
querystring: require.resolve('querystring-es3'),
291291
},
292292
},
293293
module: {

tools/scripts-config-react-webpack/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"postcss": "^8.4.47",
4444
"postcss-loader": "^8.1.1",
4545
"postcss-safe-parser": "^6.0.0",
46+
"querystring-es3": "^0.2.1",
4647
"regenerator-runtime": "^0.13.11",
4748
"resolve-url-loader": "^5.0.0",
4849
"sass": "^1.80.5",

tools/scripts-config-storybook-lib/.storybook-templates/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const defaultMain = {
8484
fallback: {
8585
...config.resolve.fallback,
8686
path: false,
87-
querystring: false,
87+
querystring: require.resolve('querystring-es3'),
8888
},
8989
},
9090
};

tools/scripts-config-storybook-lib/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,20 @@
2424
"@storybook/addon-interactions": "^7.6.20",
2525
"@storybook/addon-links": "^7.6.20",
2626
"@storybook/addon-storysource": "^7.6.20",
27-
"@storybook/source-loader": "^7.6.20",
2827
"@storybook/jest": "^0.2.3",
2928
"@storybook/preset-scss": "^1.0.3",
3029
"@storybook/react": "^7.6.20",
3130
"@storybook/react-webpack5": "^7.6.20",
31+
"@storybook/source-loader": "^7.6.20",
3232
"@storybook/testing-library": "^0.2.2",
33-
"@talend/scripts-config-react-webpack": "^16.8.1",
3433
"@talend/dynamic-cdn-webpack-plugin": "^14.0.0",
34+
"@talend/scripts-config-react-webpack": "^16.8.1",
3535
"assert": "^2.1.0",
3636
"i18next-http-backend": "^1.4.5",
3737
"lodash": "^4.17.21",
3838
"msw": "^2.6.6",
3939
"msw-storybook-addon": "^2.0.4",
40+
"querystring-es3": "^0.2.1",
4041
"storybook": "^7.6.20",
4142
"util": "^0.12.5"
4243
},

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15764,6 +15764,11 @@ qs@6.13.0, qs@^6.10.0, qs@^6.10.3, qs@^6.11.0, qs@^6.12.3:
1576415764
dependencies:
1576515765
side-channel "^1.0.6"
1576615766

15767+
querystring-es3@^0.2.1:
15768+
version "0.2.1"
15769+
resolved "https://registry.yarnpkg.com/querystring-es3/-/querystring-es3-0.2.1.tgz#9ec61f79049875707d69414596fd907a4d711e73"
15770+
integrity sha512-773xhDQnZBMFobEiztv8LIl70ch5MSF/jUQVlhwFyBILqq96anmoctVIYz+ZRp0qbCKATTn6ev02M3r7Ga5vqA==
15771+
1576715772
querystringify@^2.1.1:
1576815773
version "2.2.0"
1576915774
resolved "https://registry.yarnpkg.com/querystringify/-/querystringify-2.2.0.tgz#3345941b4153cb9d082d8eee4cda2016a9aef7f6"

0 commit comments

Comments
 (0)