Skip to content

Commit

Permalink
Format all files
Browse files Browse the repository at this point in the history
  • Loading branch information
aryaemami59 committed Jan 29, 2024
1 parent 8bb90a1 commit 770a394
Show file tree
Hide file tree
Showing 121 changed files with 1,778 additions and 1,745 deletions.
22 changes: 11 additions & 11 deletions packages/toolkit/.size-limit.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,32 @@ function withRtkPath(suffix) {
config.plugins.push(
new webpack.NormalModuleReplacementPlugin(
/@reduxjs\/toolkit\/query\/react/,
join(__dirname, `query/react`)
join(__dirname, `query/react`),
),
new webpack.NormalModuleReplacementPlugin(
/@reduxjs\/toolkit\/query/,
join(__dirname, `query`)
join(__dirname, `query`),
),
new webpack.NormalModuleReplacementPlugin(
/@reduxjs\/toolkit/,
join(__dirname)
join(__dirname),
),
new webpack.NormalModuleReplacementPlugin(
/rtk-query-react.modern.js/,
(r) => {
const old = r.request
r.request = r.request.replace(
/rtk-query-react.modern.js$/,
`rtk-query-react.${suffix}`
`rtk-query-react.${suffix}`,
)
// console.log(old, '=>', r.request)
}
},
),
new webpack.NormalModuleReplacementPlugin(/rtk-query.modern.js/, (r) => {
const old = r.request
r.request = r.request.replace(
/rtk-query.modern.js$/,
`rtk-query.${suffix}`
`rtk-query.${suffix}`,
)
// console.log(old, '=>', r.request)
}),
Expand All @@ -43,11 +43,11 @@ function withRtkPath(suffix) {
const old = r.request
r.request = r.request.replace(
/redux-toolkit.modern.js$/,
`redux-toolkit.${suffix}`
`redux-toolkit.${suffix}`,
)
// console.log(old, '=>', r.request)
}
)
},
),
)
if (suffix === 'cjs.production.min.js') {
config.resolve.mainFields = ['main', 'module']
Expand Down Expand Up @@ -100,7 +100,7 @@ module.exports = [
...e,
name: e.name + ` (${suffix})`,
modifyWebpackConfig: withRtkPath(suffix),
}))
})),
)
.concat(
...[
Expand Down Expand Up @@ -140,5 +140,5 @@ module.exports = [
...e,
name: e.name + ` (esm.js)`,
modifyWebpackConfig: withRtkPath('esm.js'),
}))
})),
)
Loading

0 comments on commit 770a394

Please sign in to comment.