AFFiNE/apps/core/.webpack/utils.ts
2023-07-20 02:44:50 +00:00

12 lines
254 B
TypeScript

import type { BuildFlags } from '@affine/cli/config';
export function computeCacheKey(buildFlags: BuildFlags) {
return [
'1',
'node' + process.version,
buildFlags.mode,
buildFlags.distribution,
buildFlags.channel,
].join('-');
}