fix env var loading

This commit is contained in:
Jeffrey Morgan
2023-07-07 10:27:16 -04:00
parent ad84138469
commit 7974ad58ff
5 changed files with 15 additions and 7 deletions

View File

@@ -1,4 +1,5 @@
import type IForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin'
import { DefinePlugin } from 'webpack'
// eslint-disable-next-line @typescript-eslint/no-var-requires
const ForkTsCheckerWebpackPlugin: typeof IForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin')
@@ -7,4 +8,7 @@ export const plugins = [
new ForkTsCheckerWebpackPlugin({
logger: 'webpack-infrastructure',
}),
new DefinePlugin({
'process.env.TELEMETRY_WRITE_KEY': JSON.stringify(process.env.TELEMETRY_WRITE_KEY),
}),
]