UNPKG

nx-esbuild-decorators

Version:

The Nx Plugin for esbuild contains executors and generators that support building applications using esbuild and also supports decorators

11 lines (9 loc) 315 B
export function getClientEnvironment(): Record<string, string> { const NX_APP = /^NX_/i; return Object.keys(process.env) .filter((key) => NX_APP.test(key) || key === 'NODE_ENV') .reduce((env, key) => { env[`process.env.${key}`] = JSON.stringify(process.env[key]); return env; }, {}); }