Skip to content

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
@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.

3 participants