Update 'src/index.ts'

This commit is contained in:
Troplo 2022-01-30 19:02:48 +11:00
parent fd91b4afd1
commit a1fcc2ab28

View file

@ -10,7 +10,7 @@ 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);
const key2 = 'import.meta.env.BUILD_DATAE'; const key2 = 'import.meta.env.BUILD_DATE';
const val2 = JSON.stringify(new Date()); const val2 = JSON.stringify(new Date());
return { define: { [key]: val, [key2]: val2 } }; return { define: { [key]: val, [key2]: val2 } };