Skip to content

fix(types): remove the keepProcessEnv from the DefaultEnvironmentOptions type - #19796

Merged
patak-cat merged 1 commit into
vitejs:mainfrom
dario-piotrowicz:dario/remove-KeepProcessEnv-from-default-type
Apr 7, 2025
Merged

patak-cat merged 1 commit into
vitejs:mainfrom
dario-piotrowicz:dario/remove-KeepProcessEnv-from-default-type

Conversation

@dario-piotrowicz

Copy link
Copy Markdown
Contributor

the changes here remove the keepProcessEnv field from the DefaultEnvironmentOptions type, which incorrectly includes it giving the impression that it at the top level vite configuration object (however doing it there doesn't have any effect and the field needs to be applied to specific environments)

cc. @sapphi-red

… type

the changes here remove the `keepProcessEnv` field from the
`DefaultEnvironmentOptions` type, which incorrectly includes it
giving the impression that it at the  top level vite configuration
object (however doing it there doesn't have any effect and the
field needs to be applied to specific environments)
@dario-piotrowicz
dario-piotrowicz force-pushed the dario/remove-KeepProcessEnv-from-default-type branch from 74ce7c8 to 14a493f Compare April 4, 2025 22:12
@dario-piotrowicz dario-piotrowicz changed the title remove the keepProcessEnv from the DefaultEnvironmentOptions type fix: remove the keepProcessEnv from the DefaultEnvironmentOptions type Apr 4, 2025
@sapphi-red sapphi-red added the p2-edge-case Bug, but has workaround or limited in scope (priority) label Apr 7, 2025
@sapphi-red sapphi-red changed the title fix: remove the keepProcessEnv from the DefaultEnvironmentOptions type fix(types): remove the keepProcessEnv from the DefaultEnvironmentOptions type Apr 7, 2025

@sapphi-red sapphi-red left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@patak-cat patak-cat left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't have many options that don't have a default, and it will be good we keep it that way but in this particular case any default value will be confusing so this sounds good to me too. Thanks!

@patak-cat
patak-cat merged commit 36935b5 into vitejs:main Apr 7, 2025
moonlitusun pushed a commit to moonlitusun/vite that referenced this pull request May 25, 2025
@dario-piotrowicz
dario-piotrowicz deleted the dario/remove-KeepProcessEnv-from-default-type branch March 11, 2026 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

p2-edge-case Bug, but has workaround or limited in scope (priority)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants