{"action":"created","issue":{"url":"https://api.github.com/repos/vuejs/vue/issues/3205","repository_url":"https://api.github.com/repos/vuejs/vue","labels_url":"https://api.github.com/repos/vuejs/vue/issues/3205/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/vue/issues/3205/comments","events_url":"https://api.github.com/repos/vuejs/vue/issues/3205/events","html_url":"https://github.com/vuejs/vue/issues/3205","id":163355290,"number":3205,"title":"[vue next] `with` keyword is invalid in `strict` mode.","user":{"login":"terrykingcha","id":1314662,"avatar_url":"https://avatars.githubusercontent.com/u/1314662?v=3","gravatar_id":"","url":"https://api.github.com/users/terrykingcha","html_url":"https://github.com/terrykingcha","followers_url":"https://api.github.com/users/terrykingcha/followers","following_url":"https://api.github.com/users/terrykingcha/following{/other_user}","gists_url":"https://api.github.com/users/terrykingcha/gists{/gist_id}","starred_url":"https://api.github.com/users/terrykingcha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/terrykingcha/subscriptions","organizations_url":"https://api.github.com/users/terrykingcha/orgs","repos_url":"https://api.github.com/users/terrykingcha/repos","events_url":"https://api.github.com/users/terrykingcha/events{/privacy}","received_events_url":"https://api.github.com/users/terrykingcha/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-01T09:25:26Z","updated_at":"2016-08-03T07:35:50Z","closed_at":"2016-07-02T15:21:07Z","body":"When I compile the templates, then bundle them by rollupjs, it will throw a error `'with' in strict mode`.  How can I handle this?"},"comment":{"url":"https://api.github.com/repos/vuejs/vue/issues/comments/237165019","html_url":"https://github.com/vuejs/vue/issues/3205#issuecomment-237165019","issue_url":"https://api.github.com/repos/vuejs/vue/issues/3205","id":237165019,"user":{"login":"eirikb","id":241706,"avatar_url":"https://avatars.githubusercontent.com/u/241706?v=3","gravatar_id":"","url":"https://api.github.com/users/eirikb","html_url":"https://github.com/eirikb","followers_url":"https://api.github.com/users/eirikb/followers","following_url":"https://api.github.com/users/eirikb/following{/other_user}","gists_url":"https://api.github.com/users/eirikb/gists{/gist_id}","starred_url":"https://api.github.com/users/eirikb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eirikb/subscriptions","organizations_url":"https://api.github.com/users/eirikb/orgs","repos_url":"https://api.github.com/users/eirikb/repos","events_url":"https://api.github.com/users/eirikb/events{/privacy}","received_events_url":"https://api.github.com/users/eirikb/received_events","type":"User","site_admin":false},"created_at":"2016-08-03T07:35:50Z","updated_at":"2016-08-03T07:35:50Z","body":"I believe @terrykingcha is correct, ES6 modules are by default strict, so they can't contain code using the keyword `with`.\r\n`useStrict` is for the bundler only, so it's possible to output a file without strict mode, \r\nbut this error occures when running rollup itself.\r\nAs can be [seen here](http://rollupjs.org/#%7B%22options%22%3A%7B%22format%22%3A%22cjs%22%2C%22moduleName%22%3A%22myBundle%22%2C%22globals%22%3A%7B%7D%7D%2C%22modules%22%3A%5B%7B%22name%22%3A%22main.js%22%2C%22code%22%3A%22with%22%7D%5D%7D)."}}
{"actor":{"display_login":"eirikb"}}