-
-
Notifications
You must be signed in to change notification settings - Fork 283
Closed
Description
If your app uses native dependencies, chances are you have had to configure the externals
array in vue.config.js
. Included in v2.0.0-rc.3
is a new way of checking for native deps that should allow you to completely remove your externals
array. It is currently disabled by default, but I would like to replace the old version by v2.0.0
.
To test it, simply upgrade to v2.0.0-rc.3
and update your vue.config.js
like so:
module.exports = {
pluginOptions: {
electronBuilder: {
nodeIntegration: true,
- externals: ['native-dep', ...]
+ experimentalNativeDepCheck: true
}
}
}
Now, run electron:serve
and it should automatically detect native deps and compilation should succeed. If this works for you, please 👍 this issue. If not, please leave a comment with the native deps you are using.
romansp, fspoettel, HeGangSZ, elinx, m4heshd and 1 more
Metadata
Metadata
Assignees
Labels
No labels