Skip to content

Commit

Permalink
upgrade everything in the monorepo to webpack5
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed Apr 22, 2022
1 parent e57f6c8 commit 38fa196
Show file tree
Hide file tree
Showing 80 changed files with 92 additions and 2,067 deletions.
1 change: 0 additions & 1 deletion .babelrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ module.exports = {
'./lib/core',
'./lib/core-common',
'./lib/core-server',
'./lib/builder-webpack4',
'./lib/builder-webpack5',
'./lib/codemod',
'./addons/storyshots',
Expand Down
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ docs/public
storybook-static
built-storybooks
lib/cli/test
lib/manager-webpack4/prebuilt
lib/manager-webpack5/prebuilt
lib/core-server/prebuilt
lib/codemod/src/transforms/__testfixtures__
Expand Down
2 changes: 1 addition & 1 deletion app/angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"jest-preset-angular": "^8.3.2",
"jest-specific-snapshot": "^4.0.0",
"tmp": "^0.2.1",
"webpack": "4"
"webpack": "5"
},
"peerDependencies": {
"@angular-devkit/architect": ">=0.8.9",
Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/common/storybook-main-default-setup.ts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const config: StorybookConfig = {
},
framework: '@storybook/react',
core: {
builder: 'webpack4',
builder: '@storybook/builder-webpack5',
},
features: {
postcss: false,
Expand Down
2 changes: 1 addition & 1 deletion examples/angular-cli/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {
'@storybook/addon-toolbars',
],
core: {
builder: 'webpack4',
builder: '@storybook/builder-webpack5',
},
angularOptions: {
enableIvy: true,
Expand Down
2 changes: 1 addition & 1 deletion examples/cra-kitchen-sink/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module.exports = {
return config;
},
core: {
builder: 'webpack4',
builder: '@storybook/builder-webpack5',
},
staticDirs: ['../public'],
features: {
Expand Down
2 changes: 1 addition & 1 deletion examples/cra-kitchen-sink/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@storybook/preset-create-react-app": "^3.1.6",
"@storybook/react": "6.5.0-alpha.64",
"@storybook/theming": "6.5.0-alpha.64",
"webpack": "4"
"webpack": "5"
},
"storybook": {
"chromatic": {
Expand Down
2 changes: 1 addition & 1 deletion examples/cra-react15/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = {
return config;
},
core: {
builder: 'webpack4',
builder: '@storybook/builder-webpack5',
},
staticDirs: ['../public'],
framework: '@storybook/react',
Expand Down
2 changes: 1 addition & 1 deletion examples/cra-react15/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@storybook/theming": "6.5.0-alpha.64",
"babel-core": "6",
"babel-runtime": "6",
"webpack": "4"
"webpack": "5"
},
"storybook": {
"chromatic": {
Expand Down
2 changes: 1 addition & 1 deletion examples/cra-ts-essentials/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const mainConfig: StorybookConfig = {
return config;
},
core: {
builder: 'webpack4',
builder: '@storybook/builder-webpack5',
},
staticDirs: ['../public'],
features: {
Expand Down
2 changes: 1 addition & 1 deletion examples/cra-ts-essentials/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"@storybook/preset-create-react-app": "^3.1.6",
"@storybook/react": "6.5.0-alpha.64",
"@storybook/testing-library": "^0.0.9",
"webpack": "4"
"webpack": "5"
},
"storybook": {
"chromatic": {
Expand Down
2 changes: 1 addition & 1 deletion examples/cra-ts-kitchen-sink/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports = {
return config;
},
core: {
builder: 'webpack4',
builder: '@storybook/builder-webpack5',
},
staticDirs: ['../public'],
features: {
Expand Down
2 changes: 1 addition & 1 deletion examples/cra-ts-kitchen-sink/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"fork-ts-checker-webpack-plugin": "^6.0.4",
"react-moment-proptypes": "^1.7.0",
"ts-node": "^9.1.0",
"webpack": "4"
"webpack": "5"
},
"storybook": {
"chromatic": {
Expand Down
2 changes: 1 addition & 1 deletion examples/ember-cli/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = {
return config;
},
core: {
builder: 'webpack4',
builder: '@storybook/builder-webpack5',
},
staticDirs: ['../ember-output'],
features: {
Expand Down
2 changes: 1 addition & 1 deletion examples/ember-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"ember-source": "~3.24.0",
"loader.js": "^4.7.0",
"shx": "^0.3.2",
"webpack": "4",
"webpack": "5",
"webpack-cli": "^4.2.0"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion examples/external-docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@
"@types/react-dom": "^16.9.14",
"cross-env": "^7.0.3",
"typescript": "^3.9.7",
"webpack": "4"
"webpack": "5"
}
}
2 changes: 1 addition & 1 deletion examples/external-docs/src/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const config: StorybookConfig = {
},
},
core: {
builder: { name: 'webpack4' },
builder: { builderName: '@storybook/builder-webpack5' },
channelOptions: { allowFunction: false, maxDepth: 10 },
},
features: {
Expand Down
2 changes: 1 addition & 1 deletion examples/html-kitchen-sink/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = {
'@storybook/addon-viewport',
],
core: {
builder: 'webpack4',
builder: '@storybook/builder-webpack5',
},
features: {
buildStoriesJson: true,
Expand Down
2 changes: 1 addition & 1 deletion examples/official-storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const config: StorybookConfig = {
'@storybook/addon-a11y',
],
core: {
builder: 'webpack4',
builder: '@storybook/builder-webpack5',
},
logLevel: 'debug',
features: {
Expand Down
2 changes: 1 addition & 1 deletion examples/official-storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"react-dom": "16.14.0",
"terser-webpack-plugin": "^5.0.3",
"uuid-browser": "^3.1.0",
"webpack": "4"
"webpack": "5"
},
"peerDependencies": {
"puppeteer": "^2.0.0 || ^3.0.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/preact-kitchen-sink/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = {
return config;
},
core: {
builder: 'webpack4',
builder: '@storybook/builder-webpack5',
},
staticDirs: ['../public'],
features: {
Expand Down
2 changes: 1 addition & 1 deletion examples/preact-kitchen-sink/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"react": "^17.0.2",
"react-dom": "^17.0.2",
"svg-url-loader": "^7.1.1",
"webpack": "4",
"webpack": "5",
"webpack-dev-server": "^3.11.2"
},
"storybook": {
Expand Down
2 changes: 1 addition & 1 deletion examples/react-ts/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const config: StorybookConfig = {
},
},
core: {
builder: { name: 'webpack4' },
builder: { builderName: '@storybook/builder-webpack5' },
channelOptions: { allowFunction: false, maxDepth: 10 },
},
features: {
Expand Down
2 changes: 1 addition & 1 deletion examples/react-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
"@types/react-dom": "^16.9.14",
"cross-env": "^7.0.3",
"typescript": "^3.9.7",
"webpack": "4"
"webpack": "5"
}
}
2 changes: 1 addition & 1 deletion examples/svelte-kitchen-sink/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module.exports = {
return config;
},
core: {
builder: 'webpack4',
builder: '@storybook/builder-webpack5',
},
staticDirs: ['../public'],
features: {
Expand Down
2 changes: 1 addition & 1 deletion examples/vue-3-cli/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
'@storybook/addon-interactions',
],
core: {
builder: 'webpack4',
builder: '@storybook/builder-webpack5',
},
features: {
buildStoriesJson: true,
Expand Down
2 changes: 1 addition & 1 deletion examples/vue-cli/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
'@storybook/preset-scss',
],
core: {
builder: 'webpack4',
builder: '@storybook/builder-webpack5',
},
features: {
buildStoriesJson: true,
Expand Down
2 changes: 1 addition & 1 deletion examples/vue-kitchen-sink/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = {
'@storybook/addon-a11y',
],
core: {
builder: 'webpack4',
builder: '@storybook/builder-webpack5',
},
staticDirs: ['../public'],
features: {
Expand Down
2 changes: 1 addition & 1 deletion examples/vue-kitchen-sink/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"svg-url-loader": "^7.1.1",
"vue-loader": "^15.9.6",
"vue-style-loader": "^4.1.2",
"webpack": "4",
"webpack": "5",
"webpack-dev-server": "^3.11.2"
},
"storybook": {
Expand Down
2 changes: 1 addition & 1 deletion examples/web-components-kitchen-sink/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = {
'@storybook/addon-toolbars',
],
core: {
builder: 'webpack4',
builder: '@storybook/builder-webpack5',
},
features: {
interactionsDebugger: true,
Expand Down
13 changes: 0 additions & 13 deletions lib/builder-webpack4/README.md

This file was deleted.

110 changes: 0 additions & 110 deletions lib/builder-webpack4/package.json

This file was deleted.

Loading

0 comments on commit 38fa196

Please sign in to comment.