{"action":"created","issue":{"url":"https://api.github.com/repos/rollup/rollup/issues/2294","repository_url":"https://api.github.com/repos/rollup/rollup","labels_url":"https://api.github.com/repos/rollup/rollup/issues/2294/labels{/name}","comments_url":"https://api.github.com/repos/rollup/rollup/issues/2294/comments","events_url":"https://api.github.com/repos/rollup/rollup/issues/2294/events","html_url":"https://github.com/rollup/rollup/issues/2294","id":334650277,"node_id":"MDU6SXNzdWUzMzQ2NTAyNzc=","number":2294,"title":"Watcher doesn't work for non-config cases","user":{"login":"guybedford","id":598730,"node_id":"MDQ6VXNlcjU5ODczMA==","avatar_url":"https://avatars1.githubusercontent.com/u/598730?v=4","gravatar_id":"","url":"https://api.github.com/users/guybedford","html_url":"https://github.com/guybedford","followers_url":"https://api.github.com/users/guybedford/followers","following_url":"https://api.github.com/users/guybedford/following{/other_user}","gists_url":"https://api.github.com/users/guybedford/gists{/gist_id}","starred_url":"https://api.github.com/users/guybedford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guybedford/subscriptions","organizations_url":"https://api.github.com/users/guybedford/orgs","repos_url":"https://api.github.com/users/guybedford/repos","events_url":"https://api.github.com/users/guybedford/events{/privacy}","received_events_url":"https://api.github.com/users/guybedford/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-21T20:43:22Z","updated_at":"2018-06-21T23:33:19Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Assigning this to myself. This is likely a duplicate of the many watcher issues, but now that I'm finally getting on top of this part of the code, simply the following case:\r\n\r\n```\r\n./bin/rollup test.js -f es -w\r\n```\r\n\r\nstarts displaying the watcher screen, then immediately exits the process."},"comment":{"url":"https://api.github.com/repos/rollup/rollup/issues/comments/399275223","html_url":"https://github.com/rollup/rollup/issues/2294#issuecomment-399275223","issue_url":"https://api.github.com/repos/rollup/rollup/issues/2294","id":399275223,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTI3NTIyMw==","user":{"login":"evocateur","id":5605,"node_id":"MDQ6VXNlcjU2MDU=","avatar_url":"https://avatars3.githubusercontent.com/u/5605?v=4","gravatar_id":"","url":"https://api.github.com/users/evocateur","html_url":"https://github.com/evocateur","followers_url":"https://api.github.com/users/evocateur/followers","following_url":"https://api.github.com/users/evocateur/following{/other_user}","gists_url":"https://api.github.com/users/evocateur/gists{/gist_id}","starred_url":"https://api.github.com/users/evocateur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evocateur/subscriptions","organizations_url":"https://api.github.com/users/evocateur/orgs","repos_url":"https://api.github.com/users/evocateur/repos","events_url":"https://api.github.com/users/evocateur/events{/privacy}","received_events_url":"https://api.github.com/users/evocateur/received_events","type":"User","site_admin":false},"created_at":"2018-06-21T23:33:19Z","updated_at":"2018-06-21T23:33:19Z","author_association":"CONTRIBUTOR","body":"Since v0.61.0, the watcher no longer does targeted rebuilds of a single config input when you return an array of configs from the config file.\r\n\r\n```js\r\n// rollup.config.js\r\nconst babel = require('rollup-plugin-babel');\r\nconst commonjs = require('rollup-plugin-commonjs');\r\nconst nodeResolve = require('rollup-plugin-node-resolve');\r\n\r\nmodule.exports = [\r\n  {\r\n    input: \"packages/foo/index.js\",\r\n    output: [\r\n      { file: \"/path/to/packages/foo/dist/index.cjs.js\", format: \"cjs\" },\r\n      { file: \"/path/to/packages/foo/dist/index.esm.js\", format: \"es\" },\r\n    ],\r\n    plugins: [nodeResolve(), commonjs(), babel()],\r\n  },\r\n  {\r\n    input: \"packages/bar/index.js\",\r\n    output: [\r\n      { file: \"/path/to/packages/bar/dist/index.cjs.js\", format: \"cjs\" },\r\n      { file: \"/path/to/packages/bar/dist/index.esm.js\", format: \"es\" },\r\n    ],\r\n    plugins: [nodeResolve(), commonjs(), babel()],\r\n  },\r\n  // et cetera\r\n];\r\n```\r\n\r\nSo with this config, rollup <= 0.60.7 would only rebuild bar if `packages/bar/index.js` changed (there are no relationships between the input modules). However, since v0.61.0 (#2259 maybe?), all outputs are rebuilt when only one input changes. Is this expected?"}}
{"actor":{"display_login":"evocateur"}}