AFFiNE/apps/core/.webpack/utils.ts

13 lines
327 B
TypeScript
Raw Normal View History

2023-07-18 19:53:10 +03:00
import type { BuildFlags } from '@affine/cli/config';
export function computeCacheKey(buildFlags: BuildFlags) {
return [
'1',
'node' + process.version,
buildFlags.mode,
buildFlags.distribution,
2023-07-20 05:44:50 +03:00
buildFlags.channel,
...(buildFlags.localBlockSuite ? [buildFlags.localBlockSuite] : []),
2023-07-18 19:53:10 +03:00
].join('-');
}