chore(repo): bump webpack version (#17836)
This commit is contained in:
parent
199d6217c1
commit
7d15e0c350
@ -267,7 +267,7 @@
|
|||||||
"use-sync-external-store": "^1.2.0",
|
"use-sync-external-store": "^1.2.0",
|
||||||
"verdaccio": "^5.0.4",
|
"verdaccio": "^5.0.4",
|
||||||
"vite": "^4.3.4",
|
"vite": "^4.3.4",
|
||||||
"webpack": "5.86.0",
|
"webpack": "5.88.0",
|
||||||
"webpack-dev-server": "^4.9.3",
|
"webpack-dev-server": "^4.9.3",
|
||||||
"webpack-merge": "^5.8.0",
|
"webpack-merge": "^5.8.0",
|
||||||
"webpack-node-externals": "^3.0.0",
|
"webpack-node-externals": "^3.0.0",
|
||||||
|
|||||||
@ -109,6 +109,7 @@ export function executeWebpackBrowserBuilder(
|
|||||||
);
|
);
|
||||||
|
|
||||||
baseWebpackConfig.plugins.push(
|
baseWebpackConfig.plugins.push(
|
||||||
|
// @ts-expect-error - difference between angular and webpack plugin definitions bc of webpack versions
|
||||||
new WebpackNxBuildCoordinationPlugin(
|
new WebpackNxBuildCoordinationPlugin(
|
||||||
`nx run-many --target=${
|
`nx run-many --target=${
|
||||||
context.target.target
|
context.target.target
|
||||||
|
|||||||
@ -129,6 +129,7 @@ export function executeWebpackDevServerBuilder(
|
|||||||
// This will occur when workspaceDependencies = []
|
// This will occur when workspaceDependencies = []
|
||||||
if (workspaceDependencies.length > 0) {
|
if (workspaceDependencies.length > 0) {
|
||||||
baseWebpackConfig.plugins.push(
|
baseWebpackConfig.plugins.push(
|
||||||
|
// @ts-expect-error - difference between angular and webpack plugin definitions bc of webpack versions
|
||||||
new WebpackNxBuildCoordinationPlugin(
|
new WebpackNxBuildCoordinationPlugin(
|
||||||
`nx run-many --target=${
|
`nx run-many --target=${
|
||||||
parsedBrowserTarget.target
|
parsedBrowserTarget.target
|
||||||
|
|||||||
@ -135,7 +135,7 @@ const fixBabelConfigurationIfNeeded = (
|
|||||||
let babelRuleItem;
|
let babelRuleItem;
|
||||||
for (const rule of webpackConfig.module.rules) {
|
for (const rule of webpackConfig.module.rules) {
|
||||||
if (typeof rule === 'string') continue;
|
if (typeof rule === 'string') continue;
|
||||||
if (!Array.isArray(rule.use)) continue;
|
if (!rule || !Array.isArray(rule.use)) continue;
|
||||||
for (const item of rule.use) {
|
for (const item of rule.use) {
|
||||||
if (typeof item !== 'string' && item['loader'].includes('babel-loader')) {
|
if (typeof item !== 'string' && item['loader'].includes('babel-loader')) {
|
||||||
babelRuleItem = item;
|
babelRuleItem = item;
|
||||||
@ -229,8 +229,8 @@ export const webpack = async (
|
|||||||
new DefinePlugin(
|
new DefinePlugin(
|
||||||
getClientEnvironment(storybookWebpackConfig.mode).stringified
|
getClientEnvironment(storybookWebpackConfig.mode).stringified
|
||||||
),
|
),
|
||||||
...(storybookWebpackConfig.plugins ?? []),
|
...((storybookWebpackConfig.plugins as WebpackPluginInstance[]) ?? []),
|
||||||
...(finalConfig.plugins ?? [])
|
...((finalConfig.plugins as WebpackPluginInstance[]) ?? [])
|
||||||
) as WebpackPluginInstance[],
|
) as WebpackPluginInstance[],
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@ -13,6 +13,7 @@ function addHotReload(config: Configuration) {
|
|||||||
// add `react-refresh/babel` to babel loader plugin
|
// add `react-refresh/babel` to babel loader plugin
|
||||||
const babelLoader = config.module.rules.find(
|
const babelLoader = config.module.rules.find(
|
||||||
(rule) =>
|
(rule) =>
|
||||||
|
rule &&
|
||||||
typeof rule !== 'string' &&
|
typeof rule !== 'string' &&
|
||||||
rule.loader?.toString().includes('babel-loader')
|
rule.loader?.toString().includes('babel-loader')
|
||||||
);
|
);
|
||||||
|
|||||||
471
pnpm-lock.yaml
generated
471
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user