expo / expo-electron-adapter

This package wraps `electron-webpack` and adds support for Expo web and other universal React packages.
MIT License
29 stars 11 forks source link

title property in configuration doesn't work? #20

Open VityaSchel opened 2 years ago

VityaSchel commented 2 years ago

Hello, I know you're not maintaining this project, but maybe you can help me figure out what am I doing wrong here? :)

Here is my electron-webpack.js config:

/* eslint-disable @typescript-eslint/no-var-requires */
const { withExpoAdapter } = require('@expo/electron-adapter')

module.exports = withExpoAdapter({
  projectRoot: __dirname,
  title: 'test'
})

projectRoot works, but title isn't. I tried putting "electronWebpack" into package.json file, but it overrides config and adapter doesn't work. Based on TypeScript definitions and README I think all properties except for projectRoot are sent to electron-webpack? But in development version and build window's title is not changed, title is the same as "title" property in package.json file

OS: MacOS 12.2.1