From 7c72c50820c8f4d43349357e8af47ae675abd01d Mon Sep 17 00:00:00 2001 From: Troplo Date: Sun, 30 Jan 2022 18:58:05 +1100 Subject: [PATCH] Update 'src/index.ts' --- src/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; }