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