{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/webpack/issues/1531","labels_url":"https://api.github.com/repos/webpack/webpack/issues/1531/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack/issues/1531/comments","events_url":"https://api.github.com/repos/webpack/webpack/issues/1531/events","html_url":"https://github.com/webpack/webpack/issues/1531","id":112469914,"number":1531,"title":"Webpack compiled bundle includes Function() eval which chrome extensions does not allow","user":{"login":"eyalw","id":608669,"avatar_url":"https://avatars.githubusercontent.com/u/608669?v=3","gravatar_id":"","url":"https://api.github.com/users/eyalw","html_url":"https://github.com/eyalw","followers_url":"https://api.github.com/users/eyalw/followers","following_url":"https://api.github.com/users/eyalw/following{/other_user}","gists_url":"https://api.github.com/users/eyalw/gists{/gist_id}","starred_url":"https://api.github.com/users/eyalw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eyalw/subscriptions","organizations_url":"https://api.github.com/users/eyalw/orgs","repos_url":"https://api.github.com/users/eyalw/repos","events_url":"https://api.github.com/users/eyalw/events{/privacy}","received_events_url":"https://api.github.com/users/eyalw/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/webpack/webpack/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-20T22:04:18Z","updated_at":"2016-01-03T22:43:12Z","closed_at":"2015-11-15T09:29:41Z","body":"Hi,\r\n\r\nmy webpack build output a javascript that uses Funciton(\"\") evaluating. Chrome extensions security policy does not allow that:\r\n\r\n```\r\nUncaught EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: \"script-src 'self' blob: filesystem: chrome-extension-resource:\".\r\n```\r\n\r\nIs there a way to use webpack without it outputting unsafe expressions like this?\r\n\r\ne.g. Angular has a configuration to disable features that use unsafe eval:\r\nhttps://docs.angularjs.org/api/ng/directive/ngCsp\r\n"},"comment":{"url":"https://api.github.com/repos/webpack/webpack/issues/comments/168548953","html_url":"https://github.com/webpack/webpack/issues/1531#issuecomment-168548953","issue_url":"https://api.github.com/repos/webpack/webpack/issues/1531","id":168548953,"user":{"login":"samkelleher","id":277884,"avatar_url":"https://avatars.githubusercontent.com/u/277884?v=3","gravatar_id":"","url":"https://api.github.com/users/samkelleher","html_url":"https://github.com/samkelleher","followers_url":"https://api.github.com/users/samkelleher/followers","following_url":"https://api.github.com/users/samkelleher/following{/other_user}","gists_url":"https://api.github.com/users/samkelleher/gists{/gist_id}","starred_url":"https://api.github.com/users/samkelleher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samkelleher/subscriptions","organizations_url":"https://api.github.com/users/samkelleher/orgs","repos_url":"https://api.github.com/users/samkelleher/repos","events_url":"https://api.github.com/users/samkelleher/events{/privacy}","received_events_url":"https://api.github.com/users/samkelleher/received_events","type":"User","site_admin":false},"created_at":"2016-01-03T22:43:12Z","updated_at":"2016-01-03T22:43:12Z","body":"@eyalw Where did you find the issue on React? I can't locate it. Also seeing the same unsafe-eval error using React+Webpack and trying to track down the issue."}}