@@ -95,13 +95,13 @@ export const getNormalizedRspackOptions = (
9595 ignoreWarnings :
9696 config . ignoreWarnings !== undefined
9797 ? config . ignoreWarnings . map ( ignore => {
98- if ( typeof ignore === "function" ) {
99- return ignore ;
100- }
101- return ( warning : Error ) => {
102- return ignore . test ( warning . message ) ;
103- } ;
104- } )
98+ if ( typeof ignore === "function" ) {
99+ return ignore ;
100+ }
101+ return ( warning : Error ) => {
102+ return ignore . test ( warning . message ) ;
103+ } ;
104+ } )
105105 : undefined ,
106106 name : config . name ,
107107 dependencies : config . dependencies ,
@@ -112,14 +112,14 @@ export const getNormalizedRspackOptions = (
112112 ? { main : { } }
113113 : typeof config . entry === "function"
114114 ? (
115- fn => ( ) =>
116- Promise . resolve ( ) . then ( fn ) . then ( getNormalizedEntryStatic )
117- ) ( config . entry )
115+ fn => ( ) =>
116+ Promise . resolve ( ) . then ( fn ) . then ( getNormalizedEntryStatic )
117+ ) ( config . entry )
118118 : getNormalizedEntryStatic ( config . entry ) ,
119119 output : nestedConfig ( config . output , output => {
120120 if ( "cssHeadDataCompression" in output ) {
121121 util . deprecate (
122- ( ) => { } ,
122+ ( ) => { } ,
123123 "cssHeadDataCompression is not used now, see https://github.com/web-infra-dev/rspack/pull/8534, this option could be removed in the future"
124124 ) ( ) ;
125125 }
@@ -128,14 +128,14 @@ export const getNormalizedRspackOptions = (
128128 const libraryAsName = library ;
129129 const libraryBase =
130130 typeof library === "object" &&
131- library &&
132- ! Array . isArray ( library ) &&
133- "type" in library
131+ library &&
132+ ! Array . isArray ( library ) &&
133+ "type" in library
134134 ? library
135135 : libraryAsName || output . libraryTarget
136136 ? ( {
137- name : libraryAsName
138- } as LibraryOptions )
137+ name : libraryAsName
138+ } as LibraryOptions )
139139 : undefined ;
140140 return {
141141 path : output . path ,
@@ -350,22 +350,22 @@ export const getNormalizedRspackOptions = (
350350 incremental : optionalNestedConfig ( experiments . incremental , options =>
351351 options === true
352352 ? ( {
353- make : true ,
354- inferAsyncModules : true ,
355- providedExports : true ,
356- dependenciesDiagnostics : true ,
357- sideEffects : true ,
358- buildChunkGraph : true ,
359- moduleIds : true ,
360- chunkIds : true ,
361- modulesHashes : true ,
362- modulesCodegen : true ,
363- modulesRuntimeRequirements : true ,
364- chunksRuntimeRequirements : true ,
365- chunksHashes : true ,
366- chunksRender : true ,
367- emitAssets : true
368- } satisfies Incremental )
353+ make : true ,
354+ inferAsyncModules : true ,
355+ providedExports : true ,
356+ dependenciesDiagnostics : true ,
357+ sideEffects : true ,
358+ buildChunkGraph : true ,
359+ moduleIds : true ,
360+ chunkIds : true ,
361+ modulesHashes : true ,
362+ modulesCodegen : true ,
363+ modulesRuntimeRequirements : true ,
364+ chunksRuntimeRequirements : true ,
365+ chunksHashes : true ,
366+ chunksRender : true ,
367+ emitAssets : true
368+ } satisfies Incremental )
369369 : options
370370 )
371371 } ) ) ,
@@ -476,14 +476,14 @@ const keyedNestedConfig = <T, R>(
476476 value === undefined
477477 ? { }
478478 : Object . keys ( value ) . reduce (
479- ( obj , key ) => {
480- obj [ key ] = ( customKeys && key in customKeys ? customKeys [ key ] : fn ) (
481- value [ key ]
482- ) ;
483- return obj ;
484- } ,
485- { } as Record < string , R >
486- ) ;
479+ ( obj , key ) => {
480+ obj [ key ] = ( customKeys && key in customKeys ? customKeys [ key ] : fn ) (
481+ value [ key ]
482+ ) ;
483+ return obj ;
484+ } ,
485+ { } as Record < string , R >
486+ ) ;
487487 if ( customKeys ) {
488488 for ( const key of Object . keys ( customKeys ) ) {
489489 if ( ! ( key in result ) ) {
@@ -578,22 +578,22 @@ export interface ModuleOptionsNormalized {
578578export type ExperimentCacheNormalized =
579579 | boolean
580580 | {
581- type : "memory" ;
582- }
581+ type : "memory" ;
582+ }
583583 | {
584- type : "persistent" ;
585- buildDependencies : string [ ] ;
586- version : string ;
587- snapshot : {
588- immutablePaths : Array < string | RegExp > ;
589- unmanagedPaths : Array < string | RegExp > ;
590- managedPaths : Array < string | RegExp > ;
591- } ;
592- storage : {
593- type : "filesystem" ;
594- directory : string ;
595- } ;
596- } ;
584+ type : "persistent" ;
585+ buildDependencies : string [ ] ;
586+ version : string ;
587+ snapshot : {
588+ immutablePaths : Array < string | RegExp > ;
589+ unmanagedPaths : Array < string | RegExp > ;
590+ managedPaths : Array < string | RegExp > ;
591+ } ;
592+ storage : {
593+ type : "filesystem" ;
594+ directory : string ;
595+ } ;
596+ } ;
597597
598598export interface ExperimentsNormalized {
599599 cache ?: ExperimentCacheNormalized ;
@@ -616,8 +616,8 @@ export type IgnoreWarningsNormalized = ((
616616export type OptimizationRuntimeChunkNormalized =
617617 | false
618618 | {
619- name : string | ( ( entrypoint : { name : string } ) => string ) ;
620- } ;
619+ name : string | ( ( entrypoint : { name : string } ) => string ) ;
620+ } ;
621621
622622export interface RspackOptionsNormalized {
623623 name ?: Name ;
0 commit comments