We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 747f5d0 commit 825c808Copy full SHA for 825c808
src/core/index.ts
@@ -13,7 +13,7 @@ import { getRepoUrl } from './repo';
13
export * from './types';
14
15
export const UnpluginInfo = createUnplugin<Options | undefined>((option) => {
16
- const now = new Date();
+ let now: Date;
17
18
const root = path.resolve(option?.root ?? process.cwd());
19
const info = getRepoInfo(root);
@@ -30,6 +30,9 @@ export const UnpluginInfo = createUnplugin<Options | undefined>((option) => {
30
31
return {
32
name: 'unplugin-info',
33
+ buildStart() {
34
+ now = new Date();
35
+ },
36
resolveId(id) {
37
if (Object.values(ModuleName).includes(id)) {
38
return `\0${id}`;
0 commit comments