Update 'src/index.ts'
This commit is contained in:
parent
7c72c50820
commit
fd91b4afd1
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ const createPlugin = (): Plugin => {
|
||||||
const val = JSON.stringify(process.env.npm_package_version);
|
const val = JSON.stringify(process.env.npm_package_version);
|
||||||
|
|
||||||
const key2 = 'import.meta.env.BUILD_DATAE';
|
const key2 = 'import.meta.env.BUILD_DATAE';
|
||||||
const val2 = JSON.stringify(process.env.npm_build_date);
|
const val2 = JSON.stringify(new Date());
|
||||||
|
|
||||||
return { define: { [key]: val, [key2]: val2 } };
|
return { define: { [key]: val, [key2]: val2 } };
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue