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

[menu-bar][electron] Fix support for runCli env vars #180

Merged
merged 3 commits into from
Feb 16, 2024

Conversation

gabrieldonadel
Copy link
Member

@gabrieldonadel gabrieldonadel commented Feb 16, 2024

Why

Setting a custom Android SDK root location on electron crashes the app

How

  • Implement electron MenubarModule setEnvVars function
  • Fix input text color on react-native-web

Test Plan

Screen.Recording.2024-02-16.at.17.06.15.mov

Comment on lines +10 to +17
optimizeDeps: {
include: ['common-types'],
},
build: {
commonjsOptions: {
include: [/common-types/, /node_modules/],
},
},
Copy link
Member Author

Choose a reason for hiding this comment

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

According to https://vitejs.dev/guide/dep-pre-bundling.html#monorepos-and-linked-dependencies

In a monorepo setup, a dependency may be a linked package from the same repo. Vite automatically detects dependencies that are not resolved from node_modules and treats the linked dep as source code. It will not attempt to bundle the linked dep, and will analyze the linked dep's dependency list instead.
However, this requires the linked dep to be exported as ESM. If not, you can add the dependency to optimizeDeps.include and build.commonjsOptions.include in your config.

Base automatically changed from @gabrieldonadel/remove-cli-mmkv to main February 16, 2024 20:10
@gabrieldonadel gabrieldonadel force-pushed the @gabrieldonadel/electron-env-vars branch from 6236a39 to 6ced301 Compare February 16, 2024 20:11
@gabrieldonadel gabrieldonadel merged commit 93edb60 into main Feb 16, 2024
1 check passed
@gabrieldonadel gabrieldonadel deleted the @gabrieldonadel/electron-env-vars branch February 16, 2024 20:14
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