File tree 2 files changed +21
-21
lines changed
2 files changed +21
-21
lines changed Original file line number Diff line number Diff line change @@ -414,17 +414,17 @@ export function createSelectorCreator<
414
414
// @ts -ignore
415
415
lastResult = memoizedResultFunc . apply ( null , inputSelectorResults )
416
416
417
- if ( process . env . NODE_ENV !== 'production' ) {
418
- const { devModeChecks = { } } = combinedOptions
419
- const { identityFunctionCheck, inputStabilityCheck } =
420
- getDevModeChecksExecutionInfo ( firstRun , devModeChecks )
421
- if ( identityFunctionCheck . shouldRun ) {
422
- identityFunctionCheck . run (
423
- resultFunc as Combiner < InputSelectors , Result > ,
424
- inputSelectorResults ,
425
- lastResult
426
- )
427
- }
417
+ if ( process . env . NODE_ENV !== 'production' ) {
418
+ const { devModeChecks = { } } = combinedOptions
419
+ const { identityFunctionCheck, inputStabilityCheck } =
420
+ getDevModeChecksExecutionInfo ( firstRun , devModeChecks )
421
+ if ( identityFunctionCheck . shouldRun ) {
422
+ identityFunctionCheck . run (
423
+ resultFunc as Combiner < InputSelectors , Result > ,
424
+ inputSelectorResults ,
425
+ lastResult ,
426
+ )
427
+ }
428
428
429
429
if ( inputStabilityCheck . shouldRun ) {
430
430
// make a second copy of the params, to check if we got the same results
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ if (process.env.NODE_ENV === 'production') {
11
11
module.exports = require('./reselect.production.min.cjs')
12
12
} else {
13
13
module.exports = require('./reselect.development.cjs')
14
- }`
14
+ }` ,
15
15
)
16
16
}
17
17
@@ -61,43 +61,43 @@ export default defineConfig((options): Options[] => {
61
61
} ,
62
62
format : [ 'esm' ] ,
63
63
outExtension : ( ) => ( { js : '.mjs' } ) ,
64
- minify : true
64
+ minify : true ,
65
65
} ,
66
66
{
67
67
...commonOptions ,
68
68
name : 'CJS Development' ,
69
69
entry : {
70
- 'reselect.development' : 'src/index.ts'
70
+ 'reselect.development' : 'src/index.ts' ,
71
71
} ,
72
72
env : {
73
- NODE_ENV : 'development'
73
+ NODE_ENV : 'development' ,
74
74
} ,
75
75
format : [ 'cjs' ] ,
76
76
outDir : './dist/cjs/' ,
77
- outExtension : ( ) => ( { js : '.cjs' } )
77
+ outExtension : ( ) => ( { js : '.cjs' } ) ,
78
78
} ,
79
79
{
80
80
...commonOptions ,
81
81
name : 'CJS production' ,
82
82
entry : {
83
- 'reselect.production.min' : 'src/index.ts'
83
+ 'reselect.production.min' : 'src/index.ts' ,
84
84
} ,
85
85
env : {
86
- NODE_ENV : 'production'
86
+ NODE_ENV : 'production' ,
87
87
} ,
88
88
format : [ 'cjs' ] ,
89
89
outDir : './dist/cjs/' ,
90
90
outExtension : ( ) => ( { js : '.cjs' } ) ,
91
91
minify : true ,
92
92
onSuccess : async ( ) => {
93
93
await writeCommonJSEntry ( )
94
- }
94
+ } ,
95
95
} ,
96
96
{
97
97
...commonOptions ,
98
98
name : 'CJS Type Definitions' ,
99
99
format : [ 'cjs' ] ,
100
- dts : { only : true }
101
- }
100
+ dts : { only : true } ,
101
+ } ,
102
102
]
103
103
} )
You can’t perform that action at this time.
0 commit comments