diff --git a/README.md b/README.md index 998dccf..7012d50 100644 --- a/README.md +++ b/README.md @@ -423,7 +423,6 @@ config.entryPoints config.output : ChainedMap config.output - .auxiliaryComment(auxiliaryComment) .chunkFilename(chunkFilename) .chunkLoadTimeout(chunkLoadTimeout) .chunkLoadingGlobal(chunkLoadingGlobal) @@ -446,8 +445,6 @@ config.output .hotUpdateFunction(hotUpdateFunction) .hotUpdateMainFilename(hotUpdateMainFilename) .library(library) - .libraryExport(libraryExport) - .libraryTarget(libraryTarget) .importFunctionName(importFunctionName) .path(path) .pathinfo(pathinfo) @@ -456,7 +453,6 @@ config.output .sourceMapFilename(sourceMapFilename) .strictModuleErrorHandling(strictModuleErrorHandling) .strictModuleExceptionHandling(strictModuleExceptionHandling) - .umdNamedDefine(umdNamedDefine) .workerChunkLoading(workerChunkLoading) .enabledLibraryTypes(enabledLibraryTypes) .environment(environment) diff --git a/src/Output.js b/src/Output.js index e3e4291..74a922d 100644 --- a/src/Output.js +++ b/src/Output.js @@ -4,7 +4,6 @@ export default class extends ChainedMap { constructor(parent) { super(parent); this.extend([ - 'auxiliaryComment', 'assetModuleFilename', 'bundlerInfo', 'chunkFilename', @@ -28,8 +27,6 @@ export default class extends ChainedMap { 'hotUpdateGlobal', 'hotUpdateMainFilename', 'library', - 'libraryExport', - 'libraryTarget', 'importFunctionName', 'path', 'pathinfo', @@ -38,7 +35,6 @@ export default class extends ChainedMap { 'sourceMapFilename', 'strictModuleErrorHandling', 'strictModuleExceptionHandling', - 'umdNamedDefine', 'workerChunkLoading', 'enabledLibraryTypes', 'environment', diff --git a/types/index.d.ts b/types/index.d.ts index aba9139..a621201 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -186,7 +186,6 @@ declare namespace Config { type RspackOutput = Required>; class Output extends ChainedMap { - auxiliaryComment(value: RspackOutput['auxiliaryComment']): this; assetModuleFilename(value: RspackOutput['assetModuleFilename']): this; bundlerInfo(value: RspackOutput['bundlerInfo']): this; chunkFilename(value: RspackOutput['chunkFilename']): this; @@ -216,8 +215,6 @@ declare namespace Config { hotUpdateGlobal(value: RspackOutput['hotUpdateGlobal']): this; hotUpdateMainFilename(value: RspackOutput['hotUpdateMainFilename']): this; library(value: RspackOutput['library']): this; - libraryExport(value: RspackOutput['libraryExport']): this; - libraryTarget(value: RspackOutput['libraryTarget']): this; importFunctionName(value: RspackOutput['importFunctionName']): this; path(value: RspackOutput['path']): this; pathinfo(value: RspackOutput['pathinfo']): this; @@ -230,7 +227,6 @@ declare namespace Config { strictModuleExceptionHandling( value: RspackOutput['strictModuleExceptionHandling'], ): this; - umdNamedDefine(value: RspackOutput['umdNamedDefine']): this; workerChunkLoading(value: RspackOutput['workerChunkLoading']): this; enabledLibraryTypes(value: RspackOutput['enabledLibraryTypes']): this; environment(value: RspackOutput['environment']): this; diff --git a/types/test/rspack-chain-tests.ts b/types/test/rspack-chain-tests.ts index 49df7be..b408551 100644 --- a/types/test/rspack-chain-tests.ts +++ b/types/test/rspack-chain-tests.ts @@ -34,13 +34,7 @@ config .entryPoints.delete('main') .end() // output - .output.auxiliaryComment('Test Comment') - .auxiliaryComment({ - root: 'Root Comment', - commonjs: 'CommonJS Comment', - commonjs2: 'CommonJS2 Comment', - amd: 'AMD Comment', - }) + .output .bundlerInfo({ force: false, }) @@ -60,15 +54,12 @@ config .hotUpdateChunkFilename('update') .hotUpdateMainFilename('main') .library('var') - .libraryExport(['MyModule', 'MySubModule']) - .libraryTarget('var') .path('/') .pathinfo(true) .publicPath('/') .sourceMapFilename('index.js.map') .strictModuleExceptionHandling(true) .iife(true) - .umdNamedDefine(true) .webassemblyModuleFilename('[id].[hash].wasm') .clean({ keep: 'foo',