Skip to content

Commit

Permalink
chore: update webpack in validations
Browse files Browse the repository at this point in the history
  • Loading branch information
HelenaIsh committed May 16, 2024
1 parent f60990a commit d2f2e3b
Show file tree
Hide file tree
Showing 6 changed files with 873 additions and 455 deletions.
7 changes: 5 additions & 2 deletions packages/react-ui-validations/.storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
module.exports = {
core: { disableTelemetry: true },
addons: ['creevey', 'creevey/preset/ie11'],
core: {
builder: 'webpack5',
disableTelemetry: true,
},
addons: ['creevey'],
stories: ['../stories/**/*.stories.tsx'],
typescript: {
check: false,
Expand Down
3 changes: 2 additions & 1 deletion packages/react-ui-validations/.storybook/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,15 @@ module.exports = async ({ config, mode }) => {
},
{
test: /\.(css|less)$/,
loaders: [
use: [
'style-loader',
{
loader: 'css-loader',
options: {
modules: {
mode: 'global',
localIdentName: '[name]-[local]-[hash:base64:4]',
namedExport: false,
},
},
},
Expand Down
1 change: 1 addition & 0 deletions packages/react-ui-validations/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module.exports = {
presets: ['@babel/preset-env', '@babel/typescript', '@babel/preset-react'],
plugins: [
'@babel/plugin-transform-runtime',
'@babel/plugin-proposal-export-default-from',
'react-hot-loader/babel',
['@babel/plugin-proposal-decorators', { legacy: true }],
[
Expand Down
27 changes: 15 additions & 12 deletions packages/react-ui-validations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"storybook": "node ../../scripts/patch-node-options.js \"cross-env STORYBOOK_REACT_UI_TEST=true start-storybook -p 8081\"",
"storybook:build": "node ../../scripts/patch-node-options.js \"cross-env STORYBOOK_REACT_UI_TEST=true build-storybook -o .storybook/build --quiet\"",
"storybook:serve": "serve -l 8081 .storybook/build",
"start:docs": "node ../../scripts/patch-node-options.js \"webpack-dev-server -d --config webpack.docs.config.js --hot\"",
"start:docs": "node ../../scripts/patch-node-options.js \"webpack-dev-server --config webpack.docs.config.js --hot \"",
"lint": "npm-run-all --continue-on-error --parallel lint:*",
"lint:tsc": "tsc --noEmit --diagnostics",
"lint:eslint": "cross-env TIMING=1 eslint --ext .js,.jsx,.ts,.tsx ./",
Expand Down Expand Up @@ -58,11 +58,12 @@
"warning": "^4.0.3"
},
"devDependencies": {
"@babel/core": "^7.16.5",
"@babel/plugin-proposal-decorators": "7.16.5",
"@babel/plugin-transform-runtime": "^7.16.5",
"@babel/preset-env": "^7.16.5",
"@babel/preset-react": "^7.16.5",
"@babel/core": "^7.24.5",
"@babel/plugin-proposal-decorators": "7.24.1",
"@babel/plugin-proposal-export-default-from": "^7.24.1",
"@babel/plugin-transform-runtime": "^7.24.3",
"@babel/preset-env": "^7.24.5",
"@babel/preset-react": "^7.24.1",
"@hot-loader/react-dom": "^17.0.1",
"@rollup/plugin-commonjs": "21.0.1",
"@rollup/plugin-node-resolve": "13.1.1",
Expand All @@ -71,6 +72,8 @@
"@skbkontur/react-props2attrs": "0.1.3",
"@skbkontur/react-sorge": "0.2.1",
"@storybook/addon-docs": "6.4.22",
"@storybook/builder-webpack5": "^6.4.22",
"@storybook/manager-webpack5": "^6.4.22",
"@storybook/react": "6.4.22",
"@testing-library/jest-dom": "5.16.1",
"@testing-library/react": "12.1.2",
Expand All @@ -84,9 +87,9 @@
"@types/react-syntax-highlighter": "^13.5.0",
"@types/styled-components": "^5.1.7",
"@types/warning": "^3.0.0",
"babel-loader": "^8.0.6",
"babel-plugin-search-and-replace": "1.1.0",
"core-js": "^3.9.1",
"babel-loader": "^9.1.3",
"babel-plugin-search-and-replace": "1.1.1",
"core-js": "^3.37.0",
"creevey": "0.8.2-fix-wait.2",
"cross-env": "^7.0.3",
"css-loader": "^5.2.7",
Expand Down Expand Up @@ -119,8 +122,8 @@
"ts-loader": "8.0.17",
"tslib": "2.3.1",
"typescript": "4.5.4",
"webpack": "^4.41.2",
"webpack-cli": "^3.3.10",
"webpack-dev-server": "3.9.0"
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "5.0.4"
}
}
2 changes: 0 additions & 2 deletions packages/react-ui-validations/webpack.docs.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,8 @@ function createConfig(publicPath, output) {
}),
],
devServer: {
disableHostCheck: true,
historyApiFallback: true,
host: '0.0.0.0',
inline: true,
},
};
}
Expand Down
Loading

0 comments on commit d2f2e3b

Please sign in to comment.