Issue title: Libraries built using vue-cli produce "$attrs/$listeners/props are readonly" errors when consumed in Electron apps
 Issue body: Cross-posting an issue from vuejs/vue-cli#1583 as it may be more appropriate here. TL;DR: when libraries built using vue-cli are consumed inside Electron apps, it seems like they reference one version of the Vue bundle while a different version gets bundled in renderer.js. I was wondering if it's possible for you to modify this plugin to adjust the webpack config that vue-cli generates by default to make libraries play nice in Electron apps.

### Version
vue-cli: 3.0.0-rc.1
vue-cli-plugin-electron-builder: 0.3.2

### Reproduction link
[https://github.com/TAGC/vue-electron-bug](https://github.com/TAGC/vue-electron-bug)

### Steps to reproduce
1. Go into `lib`, install dependencies and build it with `npm run build`.
2. Go into `app`, install dependencies.
3. Serve the app in the browser with `npm run serve`. Open the browser devtools and check for errors in the console while clicking the button.
4. Serve the app in an Electron shell with `npm run electron:serve`. Repeat the above procedure, monitoring for errors in the Electron devtools console.

### What is expected?
No console errors should appear in either case.

### What is actually happening?
When serving as an Electron app, three errors appear every time the button is clicked.

```
[Vue warn]: $attrs is readonly.
...
[Vue warn]: $listeners is readonly.
...
[Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: "message"
```

---
I've done some digging and it seems a number of projects have encountered this problem when their libraries are used in Electron apps. It has something to do with the Electron renderer process using a different version of the Vue bundle than the one the library uses - these two Vue bundles conflict with each other.

[This issue comment](https://github.com/vuetifyjs/vuetify/issues/4068#issuecomment-393123259) sheds some light on the issue, although I haven't yet tried the solution the person proposes.
 Comments: 
 Comment 0: This might be caused by electron-webpack which will be replaced in v1.0.0. If the issue still persists in that version, I'll take a closer astevens@example.org. Expect a beta within 1-2 weeks.
 Comment 1: I just released the first v1.0.0 alpha! Go ahead and try it again with the new version and let me know if it works. Thanks.
 Comment 2: I tried updating the repo linked above to v1.0.0-alpha.2 and following your [upgrade guide](https://github.com/nklayman/vue-cli-plugin-electron-builder/blob/v1-dev/UPGRADING.md).

I'm finding that serving in a regular browser (`npm run serve` / `npm run build`) works okay, as before. `npm run serve:electron` seems to work initially and doesn't produce any errors, but gets stuck indefinitely at "Launching electron". `npm run build:electron` fails after producing this output:

```
$ npm run build:electron
npm WARN npm npm does not support Node.js v10.4.1
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.
npm WARN npm You can find the latest version at https://nodejs.org/

> astevens@example.org build:electron /Users/<me>/Documents/VSCode/vue-electron-bug/app
> vue-cli-service build:electron

Bundling render process:

⠏  Building for production...

 DONE  Compiled successfully in 2454ms                                                                                                                                       19:52:40

  File                                      Size             Gzipped

  dist_electron/bundled/js/chunk-vendors    76.08 kb         27.49 kb
  .32ac58bc.js
  dist_electron/bundled/js/app.42157137.    2.22 kb          1.11 kb
  js
  dist_electron/bundled/css/app.42817a0e    0.16 kb          0.14 kb
  .css

  Images and other types of assets omitted.

 DONE  Build complete. The dist_electron/bundled directory is ready to be deployed.

Bundling main process:

Hash: 87c32639d0f6baeffc20
Version: webpack 4.12.0
Time: 278ms
Built at: 17/06/2018 19:52:40
        Asset     Size  Chunks             Chunk Names
background.js  1.6 KiB       0  [emitted]  background
Entrypoint background = background.js
[0] external "electron" 42 bytes {0} [built]
[1] external "url" 42 bytes {0} [built]
[2] external "path" 42 bytes {0} [built]
[3] ./src/background.js 1.43 KiB {0} [built]
[4] multi ./src/background.js 28 bytes {0} [built]

Building app with electron-builder:

  • electron-builder version=20.15.1
  • description is missed in the package.json appPackageFile=/Users/<me>/Documents/VSCode/vue-electron-bug/app/package.json
  • author is missed in the package.json appPackageFile=/Users/<me>/Documents/VSCode/vue-electron-bug/app/package.json
  • writing effective config file=dist_electron/electron-builder-effective-config.yaml
Unhandled rejection Error: Unresolved node modules: vue
    at /Users/<me>/Documents/VSCode/vue-electron-bug/app/node_modules/electron-builder-lib/src/util/packageDependencies.ts:112:21
```

Latest commit: https://github.com/TAGC/vue-electron-bug/commit/48eb5f8a641e87e789b3c56fcf73471ad3cd9434

**Environment**

 - OS: macOS High Sierra 10.13.5
 - node: 10.4.1
 - npm: 5.6.0
 Comment 3: I created #24 for the serve: electron problem. I will look into the other issue soon.
 Comment 4: Please follow the instructions on this [issue comment](https://github.com/nklayman/vue-cli-plugin-electron-builder/issues/24#issuecomment-398149671) for the serve:electron issue. I run into an install error when following the instructions for your repo (I'm on windows btw).
[2018-06-18T18_37_58_783Z-debug.log](https://github.com/nklayman/vue-cli-plugin-electron-builder/files/2112547/2018-06-18T18_37_58_783Z-debug.log)

 Comment 5: @nklayman I got errors similar to that using npm v6.1.0 on Windows. npm v6 seems pretty broken and I encountered other issues with it too. Are you able to install dependencies with npm v5.6.0?
 Comment 6: [2018-06-18T22_03_51_221Z-debug.log](https://github.com/nklayman/vue-cli-plugin-electron-builder/files/2113142/2018-06-18T22_03_51_221Z-debug.log)
Still doesn't work with vscode closed and npm v5.6.0. I think this might be a windows-related bug.

However, it worked using yarn. Electron launched just fine, and there was no errors like the ones initially mentioned in this issue. I will close this issue as it appears to be fixed, and will continue to look into #24, which seems like a macOS only bug. Thanks
{'source': 'GithubIssues', 'repo_name_with_owner': 'nklayman/vue-cli-plugin-electron-builder', 'issue_id': 332767074, 'repo_stars': 3986.0}