Skip to content

Commit 6e48e96

Browse files
committed
Format all files
1 parent 6c748fc commit 6e48e96

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed

src/createSelectorCreator.ts

+11-11
Original file line numberDiff line numberDiff line change
@@ -414,17 +414,17 @@ export function createSelectorCreator<
414414
// @ts-ignore
415415
lastResult = memoizedResultFunc.apply(null, inputSelectorResults)
416416

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+
}
428428

429429
if (inputStabilityCheck.shouldRun) {
430430
// make a second copy of the params, to check if we got the same results

tsup.config.ts

+10-10
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ if (process.env.NODE_ENV === 'production') {
1111
module.exports = require('./reselect.production.min.cjs')
1212
} else {
1313
module.exports = require('./reselect.development.cjs')
14-
}`
14+
}`,
1515
)
1616
}
1717

@@ -61,43 +61,43 @@ export default defineConfig((options): Options[] => {
6161
},
6262
format: ['esm'],
6363
outExtension: () => ({ js: '.mjs' }),
64-
minify: true
64+
minify: true,
6565
},
6666
{
6767
...commonOptions,
6868
name: 'CJS Development',
6969
entry: {
70-
'reselect.development': 'src/index.ts'
70+
'reselect.development': 'src/index.ts',
7171
},
7272
env: {
73-
NODE_ENV: 'development'
73+
NODE_ENV: 'development',
7474
},
7575
format: ['cjs'],
7676
outDir: './dist/cjs/',
77-
outExtension: () => ({ js: '.cjs' })
77+
outExtension: () => ({ js: '.cjs' }),
7878
},
7979
{
8080
...commonOptions,
8181
name: 'CJS production',
8282
entry: {
83-
'reselect.production.min': 'src/index.ts'
83+
'reselect.production.min': 'src/index.ts',
8484
},
8585
env: {
86-
NODE_ENV: 'production'
86+
NODE_ENV: 'production',
8787
},
8888
format: ['cjs'],
8989
outDir: './dist/cjs/',
9090
outExtension: () => ({ js: '.cjs' }),
9191
minify: true,
9292
onSuccess: async () => {
9393
await writeCommonJSEntry()
94-
}
94+
},
9595
},
9696
{
9797
...commonOptions,
9898
name: 'CJS Type Definitions',
9999
format: ['cjs'],
100-
dts: { only: true }
101-
}
100+
dts: { only: true },
101+
},
102102
]
103103
})

0 commit comments

Comments
 (0)