{"action":"created","issue":{"url":"https://api.github.com/repos/vuejs/vue-cli/issues/3718","repository_url":"https://api.github.com/repos/vuejs/vue-cli","labels_url":"https://api.github.com/repos/vuejs/vue-cli/issues/3718/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/vue-cli/issues/3718/comments","events_url":"https://api.github.com/repos/vuejs/vue-cli/issues/3718/events","html_url":"https://github.com/vuejs/vue-cli/issues/3718","id":426196486,"node_id":"MDU6SXNzdWU0MjYxOTY0ODY=","number":3718,"title":"Vue not being externalized despite using `--target lib` with `vue-cli-service build`","user":{"login":"eldilibra","id":1389505,"node_id":"MDQ6VXNlcjEzODk1MDU=","avatar_url":"https://avatars0.githubusercontent.com/u/1389505?v=4","gravatar_id":"","url":"https://api.github.com/users/eldilibra","html_url":"https://github.com/eldilibra","followers_url":"https://api.github.com/users/eldilibra/followers","following_url":"https://api.github.com/users/eldilibra/following{/other_user}","gists_url":"https://api.github.com/users/eldilibra/gists{/gist_id}","starred_url":"https://api.github.com/users/eldilibra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eldilibra/subscriptions","organizations_url":"https://api.github.com/users/eldilibra/orgs","repos_url":"https://api.github.com/users/eldilibra/repos","events_url":"https://api.github.com/users/eldilibra/events{/privacy}","received_events_url":"https://api.github.com/users/eldilibra/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-03-27T21:41:43Z","updated_at":"2019-03-29T15:24:49Z","closed_at":"2019-03-28T00:51:21Z","author_association":"NONE","body":"### Version\r\n3.5.1\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n### Environment info\r\n```\r\nEnvironment Info:\r\n\r\n  System:\r\n    OS: macOS High Sierra 10.13.6\r\n    CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz\r\n  Binaries:\r\n    Node: 10.15.3 - ~/.nvm/versions/node/v10.15.3/bin/node\r\n    Yarn: 1.13.0 - /usr/local/bin/yarn\r\n    npm: 6.4.1 - ~/.nvm/versions/node/v10.15.3/bin/npm\r\n  Browsers:\r\n    Chrome: 73.0.3683.86\r\n    Firefox: Not Found\r\n    Safari: 12.0.3\r\n  npmGlobalPackages:\r\n    @vue/cli: Not Found\r\n```\r\n\r\n\r\n### Steps to reproduce\r\nBuild with `vue-cli-service build --target lib index.js`\r\n\r\n### What is expected?\r\nAfter another project imports my library, that project's `node_modules/my-library/node_modules` does not contain `vue`.\r\n\r\n### What is actually happening?\r\n`node_modules/my-library/node_modules/vue` exists.\r\n\r\nNote that this library also depends on `vuex`.\r\n\r\n<!-- generated by vue-issues. DO NOT REMOVE -->"},"comment":{"url":"https://api.github.com/repos/vuejs/vue-cli/issues/comments/478039057","html_url":"https://github.com/vuejs/vue-cli/issues/3718#issuecomment-478039057","issue_url":"https://api.github.com/repos/vuejs/vue-cli/issues/3718","id":478039057,"node_id":"MDEyOklzc3VlQ29tbWVudDQ3ODAzOTA1Nw==","user":{"login":"eldilibra","id":1389505,"node_id":"MDQ6VXNlcjEzODk1MDU=","avatar_url":"https://avatars0.githubusercontent.com/u/1389505?v=4","gravatar_id":"","url":"https://api.github.com/users/eldilibra","html_url":"https://github.com/eldilibra","followers_url":"https://api.github.com/users/eldilibra/followers","following_url":"https://api.github.com/users/eldilibra/following{/other_user}","gists_url":"https://api.github.com/users/eldilibra/gists{/gist_id}","starred_url":"https://api.github.com/users/eldilibra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eldilibra/subscriptions","organizations_url":"https://api.github.com/users/eldilibra/orgs","repos_url":"https://api.github.com/users/eldilibra/repos","events_url":"https://api.github.com/users/eldilibra/events{/privacy}","received_events_url":"https://api.github.com/users/eldilibra/received_events","type":"User","site_admin":false},"created_at":"2019-03-29T15:24:49Z","updated_at":"2019-03-29T15:24:49Z","author_association":"NONE","body":"Thanks, and sorry for the uninformed question here. I solved this issue by adding `vue` to my `peerDependencies` in `package.json`."}}
{"actor":{"display_login":"eldilibra"}}