Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change: VITE_IS_XXXをVITE_TARGETに #1406

Merged
merged 4 commits into from
Jul 17, 2023

Conversation

sevenc-nanashi
Copy link
Member

@sevenc-nanashi sevenc-nanashi commented Jul 17, 2023

内容

VITE_IS_ELECTRON、VITE_IS_BROWSERをVITE_TARGETにまとめます。

関連 Issue

スクリーンショット・動画など

(なし)

その他

(なし)

@sevenc-nanashi sevenc-nanashi requested a review from a team as a code owner July 17, 2023 10:57
@sevenc-nanashi sevenc-nanashi requested review from Hiroshiba and removed request for a team July 17, 2023 10:57
package.json Outdated Show resolved Hide resolved
@sevenc-nanashi sevenc-nanashi marked this pull request as draft July 17, 2023 11:09
@sevenc-nanashi sevenc-nanashi marked this pull request as ready for review July 17, 2023 11:15
Comment on lines +6 to +7
export const isElectron = import.meta.env.VITE_TARGET === "electron";
export const isBrowser = import.meta.env.VITE_TARGET === "browser";
Copy link
Member

Choose a reason for hiding this comment

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

この判別がレンダラープロセス側から使われなくても良いようなコードを書いていきたいですねぇ。

Copy link
Member

@Hiroshiba Hiroshiba left a comment

Choose a reason for hiding this comment

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

LGTM!!!

@Hiroshiba Hiroshiba merged commit b8bd84c into VOICEVOX:main Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants