Update 'src/index.ts'

This commit is contained in:
Troplo 2022-01-30 18:58:05 +11:00
parent 5baa976dbb
commit 7c72c50820

View file

@ -10,7 +10,10 @@ const createPlugin = (): Plugin => {
const key = 'import.meta.env.PACKAGE_VERSION'; const key = 'import.meta.env.PACKAGE_VERSION';
const val = JSON.stringify(process.env.npm_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 { } else {
envInjectionFailed = true; envInjectionFailed = true;
} }