Skip to content

Commit

Permalink
Linting changes (#274)
Browse files Browse the repository at this point in the history
Co-authored-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] authored Nov 29, 2024
1 parent 79c1f02 commit 98ece9f
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions src/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,19 @@ const config = {
publicFolderPlugin,
counterPlugin,
],
define: 'define' in (userConfig.esbuildOptions ?? {}) ? userConfig.esbuildOptions!.define : {
// Intentionally added before process
michiProcess: JSON.stringify({
env: {
NODE_ENV: process.env.NODE_ENV,
COMMIT_SHA: commitSha,
...(userConfig.env ?? {}),
},
}),
},
define:
"define" in (userConfig.esbuildOptions ?? {})
? userConfig.esbuildOptions!.define
: {
// Intentionally added before process
michiProcess: JSON.stringify({
env: {
NODE_ENV: process.env.NODE_ENV,
COMMIT_SHA: commitSha,
...(userConfig.env ?? {}),
},
}),
},
inject: [
...devServerListener,
...(userConfig.esbuildOptions?.inject ?? []),
Expand Down

0 comments on commit 98ece9f

Please sign in to comment.