diff --git a/src/index.ts b/src/index.ts index fffb02f..f07c313 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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; }