Skip to content

Commit b462beb

Browse files
authored
fix!: remove optimization.removeAvailableModules API (#85)
1 parent cb61494 commit b462beb

File tree

6 files changed

+50
-57
lines changed

6 files changed

+50
-57
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,6 @@ config.optimization
704704
.moduleIds(moduleIds)
705705
.chunkIds(chunkIds)
706706
.nodeEnv(nodeEnv)
707-
.removeAvailableModules(removeAvailableModules)
708707
.removeEmptyChunks(removeEmptyChunks)
709708
.mergeDuplicateChunks(mergeDuplicateChunks)
710709
.providedExports(providedExports)
@@ -1302,7 +1301,6 @@ config.merge({
13021301
noEmitOnErrors,
13031302
occurrenceOrder,
13041303
providedExports,
1305-
removeAvailableModules,
13061304
removeEmptyChunks,
13071305
runtimeChunk,
13081306
sideEffects,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
},
3535
"devDependencies": {
3636
"@rslib/core": "^0.19.6",
37-
"@rspack/core": "2.0.0-beta.3",
37+
"@rspack/core": "2.0.0-beta.7",
3838
"@rstest/core": "^0.6.8",
3939
"deepmerge": "^4.3.1",
4040
"javascript-stringify": "^2.1.0",

pnpm-lock.yaml

Lines changed: 49 additions & 49 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Optimization.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ export default class extends ChainedMap {
1414
'moduleIds',
1515
'chunkIds',
1616
'nodeEnv',
17-
'removeAvailableModules',
1817
'removeEmptyChunks',
1918
'mergeDuplicateChunks',
2019
'providedExports',

types/index.d.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -434,9 +434,6 @@ declare namespace Config {
434434
moduleIds(value: RspackOptimization['moduleIds']): this;
435435
chunkIds(value: RspackOptimization['chunkIds']): this;
436436
nodeEnv(value: RspackOptimization['nodeEnv']): this;
437-
removeAvailableModules(
438-
value: RspackOptimization['removeAvailableModules'],
439-
): this;
440437
removeEmptyChunks(value: RspackOptimization['removeEmptyChunks']): this;
441438
mergeDuplicateChunks(
442439
value: RspackOptimization['mergeDuplicateChunks'],

types/test/rspack-chain-tests.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,6 @@ config
207207
.minimize(true)
208208
.nodeEnv(false)
209209
.providedExports(true)
210-
.removeAvailableModules(true)
211210
.removeEmptyChunks(true)
212211
.runtimeChunk('single')
213212
.runtimeChunk({ name: ({}) => 'hello' })

0 commit comments

Comments
 (0)