Skip to content

Try the new native dependency checker (Help Wanted) #861

@nklayman

Description

@nklayman

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions