@flatjs/evolve 1.8.1-next.79 → 1.8.1-next.80
Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md
CHANGED
@@ -2,7 +2,13 @@ import { type WebpackPlugin } from '../../create-webpack/types.js';
|
|
2
2
|
import { type FlatEvolveOptions } from '../../types/types-options.js';
|
3
3
|
/**
|
4
4
|
* The DefinePlugin replaces variables in your code with other values or expressions at compile time.
|
5
|
-
*
|
5
|
+
* ```ts
|
6
|
+
* `__SENTRY_DEBUG__`
|
7
|
+
* `process.env.FLAT_BUILD_DATE`
|
8
|
+
* `process.env.FLAT_COMMIT_HASH`
|
9
|
+
* `process.env.FLAT_BRANCH_NAME`
|
10
|
+
* `process.env.FLAT_RELEASE_VERSION`
|
11
|
+
* ```
|
6
12
|
* @returns
|
7
13
|
*/
|
8
14
|
export declare const createBuiltinDefineVariables: (serveMode: boolean, evolveOptions: FlatEvolveOptions) => Promise<WebpackPlugin[]>;
|
@@ -1 +1 @@
|
|
1
|
-
import{getLastCommitHash,gitBranchName}from"@armit/git";import webpack from"webpack";export const createBuiltinDefineVariables=async(e,i)=>{const t=await getLastCommitHash(),n=await gitBranchName();return[new webpack.DefinePlugin({__SENTRY_DEBUG__:e,"process.env.FLAT_BUILD_DATE":JSON.stringify((new Date).toISOString()),"process.env.FLAT_COMMIT_HASH":JSON.stringify(t),"process.env.FLAT_BRANCH_NAME":JSON.stringify(n),...i.pluginOptions.definePlugin})]};
|
1
|
+
import{getLastCommitHash,gitBranchName}from"@armit/git";import webpack from"webpack";export const createBuiltinDefineVariables=async(e,i)=>{const t=await getLastCommitHash(),n=await gitBranchName();return[new webpack.DefinePlugin({__SENTRY_DEBUG__:e,"process.env.FLAT_BUILD_DATE":JSON.stringify((new Date).toISOString()),"process.env.FLAT_COMMIT_HASH":JSON.stringify(t),"process.env.FLAT_BRANCH_NAME":JSON.stringify(n),"process.env.FLAT_RELEASE_VERSION":JSON.stringify(i.ci?.releaseVersion||t),...i.pluginOptions.definePlugin})]};
|
package/dist/types/types-ci.d.ts
CHANGED