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

12 lines
254 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,
2023-07-18 19:53:10 +03:00
].join('-');
}