{"action":"created","comment":{"url":"https://api.github.com/repos/CPatchane/create-cozy-app/pulls/comments/198110724","pull_request_review_id":131979242,"id":198110724,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5ODExMDcyNA==","diff_hunk":"@@ -2,26 +2,40 @@\n \n process.env.__ENTRY_EXT__ = '.jsx'\n \n+const webpack = require('webpack')\n+const { environment } = require('./webpack.vars')\n+\n+const development = environment === 'development'\n+const entry = development ? ['preact/devtools'] : []\n+\n+const plugins = development ? [new webpack.ProvidePlugin({\n+  'window.React': 'preact-compat'\n+})] : []\n+\n module.exports = {\n+  entry,\n   resolve: {\n     extensions: ['.jsx'],\n     alias: {\n-      'react': 'preact-compat',\n+      react: 'preact-compat',\n       'react-dom': 'preact-compat',\n \n       // https://github.com/developit/preact-compat/issues/392\n       'preact-compat': 'preact-compat/dist/preact-compat'\n     }\n   },\n   module: {\n-    rules: [{\n-      test: /\\.jsx$/,\n-      exclude: /node_modules\\/(?!(cozy-ui))/,\n-      loader: 'babel-loader',\n-      options: {\n-        cacheDirectory: 'node_modules/.cache/babel-loader/react',\n-        presets: ['cozy-app']\n+    rules: [\n+      {\n+        test: /\\.jsx$/,\n+        exclude: /node_modules\\/(?!(cozy-ui))/,\n+        loader: 'babel-loader',\n+        options: {\n+          cacheDirectory: 'node_modules/.cache/babel-loader/react',","path":"packages/cozy-scripts/config/webpack.config.preact.js","position":41,"original_position":41,"commit_id":"6f71cf63722fb388cb182d25533cc1ccd799a950","original_commit_id":"6f71cf63722fb388cb182d25533cc1ccd799a950","user":{"login":"CPatchane","id":10224453,"node_id":"MDQ6VXNlcjEwMjI0NDUz","avatar_url":"https://avatars2.githubusercontent.com/u/10224453?v=4","gravatar_id":"","url":"https://api.github.com/users/CPatchane","html_url":"https://github.com/CPatchane","followers_url":"https://api.github.com/users/CPatchane/followers","following_url":"https://api.github.com/users/CPatchane/following{/other_user}","gists_url":"https://api.github.com/users/CPatchane/gists{/gist_id}","starred_url":"https://api.github.com/users/CPatchane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CPatchane/subscriptions","organizations_url":"https://api.github.com/users/CPatchane/orgs","repos_url":"https://api.github.com/users/CPatchane/repos","events_url":"https://api.github.com/users/CPatchane/events{/privacy}","received_events_url":"https://api.github.com/users/CPatchane/received_events","type":"User","site_admin":false},"body":"The two works but here you can specify which folder you want to use as babel cache. ","created_at":"2018-06-26T11:39:47Z","updated_at":"2018-06-26T11:39:48Z","html_url":"https://github.com/CPatchane/create-cozy-app/pull/622#discussion_r198110724","pull_request_url":"https://api.github.com/repos/CPatchane/create-cozy-app/pulls/622","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/CPatchane/create-cozy-app/pulls/comments/198110724"},"html":{"href":"https://github.com/CPatchane/create-cozy-app/pull/622#discussion_r198110724"},"pull_request":{"href":"https://api.github.com/repos/CPatchane/create-cozy-app/pulls/622"}},"in_reply_to_id":198110159},"pull_request":{"url":"https://api.github.com/repos/CPatchane/create-cozy-app/pulls/622","id":197382521,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk3MzgyNTIx","html_url":"https://github.com/CPatchane/create-cozy-app/pull/622","diff_url":"https://github.com/CPatchane/create-cozy-app/pull/622.diff","patch_url":"https://github.com/CPatchane/create-cozy-app/pull/622.patch","issue_url":"https://api.github.com/repos/CPatchane/create-cozy-app/issues/622","number":622,"state":"open","locked":false,"title":"Add hot-module-reload feature for React/Vue","user":{"login":"CPatchane","id":10224453,"node_id":"MDQ6VXNlcjEwMjI0NDUz","avatar_url":"https://avatars2.githubusercontent.com/u/10224453?v=4","gravatar_id":"","url":"https://api.github.com/users/CPatchane","html_url":"https://github.com/CPatchane","followers_url":"https://api.github.com/users/CPatchane/followers","following_url":"https://api.github.com/users/CPatchane/following{/other_user}","gists_url":"https://api.github.com/users/CPatchane/gists{/gist_id}","starred_url":"https://api.github.com/users/CPatchane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CPatchane/subscriptions","organizations_url":"https://api.github.com/users/CPatchane/orgs","repos_url":"https://api.github.com/users/CPatchane/repos","events_url":"https://api.github.com/users/CPatchane/events{/privacy}","received_events_url":"https://api.github.com/users/CPatchane/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-06-26T10:58:49Z","updated_at":"2018-06-26T11:39:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"134d3128ad485db68a67d63e16d97301d854e517","assignee":{"login":"CPatchane","id":10224453,"node_id":"MDQ6VXNlcjEwMjI0NDUz","avatar_url":"https://avatars2.githubusercontent.com/u/10224453?v=4","gravatar_id":"","url":"https://api.github.com/users/CPatchane","html_url":"https://github.com/CPatchane","followers_url":"https://api.github.com/users/CPatchane/followers","following_url":"https://api.github.com/users/CPatchane/following{/other_user}","gists_url":"https://api.github.com/users/CPatchane/gists{/gist_id}","starred_url":"https://api.github.com/users/CPatchane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CPatchane/subscriptions","organizations_url":"https://api.github.com/users/CPatchane/orgs","repos_url":"https://api.github.com/users/CPatchane/repos","events_url":"https://api.github.com/users/CPatchane/events{/privacy}","received_events_url":"https://api.github.com/users/CPatchane/received_events","type":"User","site_admin":false},"assignees":[{"login":"CPatchane","id":10224453,"node_id":"MDQ6VXNlcjEwMjI0NDUz","avatar_url":"https://avatars2.githubusercontent.com/u/10224453?v=4","gravatar_id":"","url":"https://api.github.com/users/CPatchane","html_url":"https://github.com/CPatchane","followers_url":"https://api.github.com/users/CPatchane/followers","following_url":"https://api.github.com/users/CPatchane/following{/other_user}","gists_url":"https://api.github.com/users/CPatchane/gists{/gist_id}","starred_url":"https://api.github.com/users/CPatchane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CPatchane/subscriptions","organizations_url":"https://api.github.com/users/CPatchane/orgs","repos_url":"https://api.github.com/users/CPatchane/repos","events_url":"https://api.github.com/users/CPatchane/events{/privacy}","received_events_url":"https://api.github.com/users/CPatchane/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":726229897,"node_id":"MDU6TGFiZWw3MjYyMjk4OTc=","url":"https://api.github.com/repos/CPatchane/create-cozy-app/labels/tag:%20breaking%20change","name":"tag: breaking change","color":"ffae5f","default":false},{"id":726231193,"node_id":"MDU6TGFiZWw3MjYyMzExOTM=","url":"https://api.github.com/repos/CPatchane/create-cozy-app/labels/tag:%20feature","name":"tag: feature","color":"297ef2","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/CPatchane/create-cozy-app/pulls/622/commits","review_comments_url":"https://api.github.com/repos/CPatchane/create-cozy-app/pulls/622/comments","review_comment_url":"https://api.github.com/repos/CPatchane/create-cozy-app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CPatchane/create-cozy-app/issues/622/comments","statuses_url":"https://api.github.com/repos/CPatchane/create-cozy-app/statuses/6f71cf63722fb388cb182d25533cc1ccd799a950","head":{"label":"CPatchane:HMR","ref":"HMR","sha":"6f71cf63722fb388cb182d25533cc1ccd799a950","user":{"login":"CPatchane","id":10224453,"node_id":"MDQ6VXNlcjEwMjI0NDUz","avatar_url":"https://avatars2.githubusercontent.com/u/10224453?v=4","gravatar_id":"","url":"https://api.github.com/users/CPatchane","html_url":"https://github.com/CPatchane","followers_url":"https://api.github.com/users/CPatchane/followers","following_url":"https://api.github.com/users/CPatchane/following{/other_user}","gists_url":"https://api.github.com/users/CPatchane/gists{/gist_id}","starred_url":"https://api.github.com/users/CPatchane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CPatchane/subscriptions","organizations_url":"https://api.github.com/users/CPatchane/orgs","repos_url":"https://api.github.com/users/CPatchane/repos","events_url":"https://api.github.com/users/CPatchane/events{/privacy}","received_events_url":"https://api.github.com/users/CPatchane/received_events","type":"User","site_admin":false},"repo":{"id":107598482,"node_id":"MDEwOlJlcG9zaXRvcnkxMDc1OTg0ODI=","name":"create-cozy-app","full_name":"CPatchane/create-cozy-app","owner":{"login":"CPatchane","id":10224453,"node_id":"MDQ6VXNlcjEwMjI0NDUz","avatar_url":"https://avatars2.githubusercontent.com/u/10224453?v=4","gravatar_id":"","url":"https://api.github.com/users/CPatchane","html_url":"https://github.com/CPatchane","followers_url":"https://api.github.com/users/CPatchane/followers","following_url":"https://api.github.com/users/CPatchane/following{/other_user}","gists_url":"https://api.github.com/users/CPatchane/gists{/gist_id}","starred_url":"https://api.github.com/users/CPatchane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CPatchane/subscriptions","organizations_url":"https://api.github.com/users/CPatchane/orgs","repos_url":"https://api.github.com/users/CPatchane/repos","events_url":"https://api.github.com/users/CPatchane/events{/privacy}","received_events_url":"https://api.github.com/users/CPatchane/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/CPatchane/create-cozy-app","description":"A CLI to bootstrap a \"zero-configuration\" application for the Cozy V3 platform","fork":false,"url":"https://api.github.com/repos/CPatchane/create-cozy-app","forks_url":"https://api.github.com/repos/CPatchane/create-cozy-app/forks","keys_url":"https://api.github.com/repos/CPatchane/create-cozy-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CPatchane/create-cozy-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CPatchane/create-cozy-app/teams","hooks_url":"https://api.github.com/repos/CPatchane/create-cozy-app/hooks","issue_events_url":"https://api.github.com/repos/CPatchane/create-cozy-app/issues/events{/number}","events_url":"https://api.github.com/repos/CPatchane/create-cozy-app/events","assignees_url":"https://api.github.com/repos/CPatchane/create-cozy-app/assignees{/user}","branches_url":"https://api.github.com/repos/CPatchane/create-cozy-app/branches{/branch}","tags_url":"https://api.github.com/repos/CPatchane/create-cozy-app/tags","blobs_url":"https://api.github.com/repos/CPatchane/create-cozy-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CPatchane/create-cozy-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CPatchane/create-cozy-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/CPatchane/create-cozy-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CPatchane/create-cozy-app/statuses/{sha}","languages_url":"https://api.github.com/repos/CPatchane/create-cozy-app/languages","stargazers_url":"https://api.github.com/repos/CPatchane/create-cozy-app/stargazers","contributors_url":"https://api.github.com/repos/CPatchane/create-cozy-app/contributors","subscribers_url":"https://api.github.com/repos/CPatchane/create-cozy-app/subscribers","subscription_url":"https://api.github.com/repos/CPatchane/create-cozy-app/subscription","commits_url":"https://api.github.com/repos/CPatchane/create-cozy-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/CPatchane/create-cozy-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/CPatchane/create-cozy-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/CPatchane/create-cozy-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/CPatchane/create-cozy-app/contents/{+path}","compare_url":"https://api.github.com/repos/CPatchane/create-cozy-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CPatchane/create-cozy-app/merges","archive_url":"https://api.github.com/repos/CPatchane/create-cozy-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CPatchane/create-cozy-app/downloads","issues_url":"https://api.github.com/repos/CPatchane/create-cozy-app/issues{/number}","pulls_url":"https://api.github.com/repos/CPatchane/create-cozy-app/pulls{/number}","milestones_url":"https://api.github.com/repos/CPatchane/create-cozy-app/milestones{/number}","notifications_url":"https://api.github.com/repos/CPatchane/create-cozy-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CPatchane/create-cozy-app/labels{/name}","releases_url":"https://api.github.com/repos/CPatchane/create-cozy-app/releases{/id}","deployments_url":"https://api.github.com/repos/CPatchane/create-cozy-app/deployments","created_at":"2017-10-19T21:03:27Z","updated_at":"2018-06-26T09:15:47Z","pushed_at":"2018-06-26T10:58:50Z","git_url":"git://github.com/CPatchane/create-cozy-app.git","ssh_url":"git@github.com:CPatchane/create-cozy-app.git","clone_url":"https://github.com/CPatchane/create-cozy-app.git","svn_url":"https://github.com/CPatchane/create-cozy-app","homepage":null,"size":4632,"stargazers_count":8,"watchers_count":8,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":14,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":8,"open_issues":14,"watchers":8,"default_branch":"master"}},"base":{"label":"CPatchane:master","ref":"master","sha":"6cc39a6735eb90d41c532da9c0f07a865f081e5a","user":{"login":"CPatchane","id":10224453,"node_id":"MDQ6VXNlcjEwMjI0NDUz","avatar_url":"https://avatars2.githubusercontent.com/u/10224453?v=4","gravatar_id":"","url":"https://api.github.com/users/CPatchane","html_url":"https://github.com/CPatchane","followers_url":"https://api.github.com/users/CPatchane/followers","following_url":"https://api.github.com/users/CPatchane/following{/other_user}","gists_url":"https://api.github.com/users/CPatchane/gists{/gist_id}","starred_url":"https://api.github.com/users/CPatchane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CPatchane/subscriptions","organizations_url":"https://api.github.com/users/CPatchane/orgs","repos_url":"https://api.github.com/users/CPatchane/repos","events_url":"https://api.github.com/users/CPatchane/events{/privacy}","received_events_url":"https://api.github.com/users/CPatchane/received_events","type":"User","site_admin":false},"repo":{"id":107598482,"node_id":"MDEwOlJlcG9zaXRvcnkxMDc1OTg0ODI=","name":"create-cozy-app","full_name":"CPatchane/create-cozy-app","owner":{"login":"CPatchane","id":10224453,"node_id":"MDQ6VXNlcjEwMjI0NDUz","avatar_url":"https://avatars2.githubusercontent.com/u/10224453?v=4","gravatar_id":"","url":"https://api.github.com/users/CPatchane","html_url":"https://github.com/CPatchane","followers_url":"https://api.github.com/users/CPatchane/followers","following_url":"https://api.github.com/users/CPatchane/following{/other_user}","gists_url":"https://api.github.com/users/CPatchane/gists{/gist_id}","starred_url":"https://api.github.com/users/CPatchane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CPatchane/subscriptions","organizations_url":"https://api.github.com/users/CPatchane/orgs","repos_url":"https://api.github.com/users/CPatchane/repos","events_url":"https://api.github.com/users/CPatchane/events{/privacy}","received_events_url":"https://api.github.com/users/CPatchane/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/CPatchane/create-cozy-app","description":"A CLI to bootstrap a \"zero-configuration\" application for the Cozy V3 platform","fork":false,"url":"https://api.github.com/repos/CPatchane/create-cozy-app","forks_url":"https://api.github.com/repos/CPatchane/create-cozy-app/forks","keys_url":"https://api.github.com/repos/CPatchane/create-cozy-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CPatchane/create-cozy-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CPatchane/create-cozy-app/teams","hooks_url":"https://api.github.com/repos/CPatchane/create-cozy-app/hooks","issue_events_url":"https://api.github.com/repos/CPatchane/create-cozy-app/issues/events{/number}","events_url":"https://api.github.com/repos/CPatchane/create-cozy-app/events","assignees_url":"https://api.github.com/repos/CPatchane/create-cozy-app/assignees{/user}","branches_url":"https://api.github.com/repos/CPatchane/create-cozy-app/branches{/branch}","tags_url":"https://api.github.com/repos/CPatchane/create-cozy-app/tags","blobs_url":"https://api.github.com/repos/CPatchane/create-cozy-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CPatchane/create-cozy-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CPatchane/create-cozy-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/CPatchane/create-cozy-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CPatchane/create-cozy-app/statuses/{sha}","languages_url":"https://api.github.com/repos/CPatchane/create-cozy-app/languages","stargazers_url":"https://api.github.com/repos/CPatchane/create-cozy-app/stargazers","contributors_url":"https://api.github.com/repos/CPatchane/create-cozy-app/contributors","subscribers_url":"https://api.github.com/repos/CPatchane/create-cozy-app/subscribers","subscription_url":"https://api.github.com/repos/CPatchane/create-cozy-app/subscription","commits_url":"https://api.github.com/repos/CPatchane/create-cozy-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/CPatchane/create-cozy-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/CPatchane/create-cozy-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/CPatchane/create-cozy-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/CPatchane/create-cozy-app/contents/{+path}","compare_url":"https://api.github.com/repos/CPatchane/create-cozy-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CPatchane/create-cozy-app/merges","archive_url":"https://api.github.com/repos/CPatchane/create-cozy-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CPatchane/create-cozy-app/downloads","issues_url":"https://api.github.com/repos/CPatchane/create-cozy-app/issues{/number}","pulls_url":"https://api.github.com/repos/CPatchane/create-cozy-app/pulls{/number}","milestones_url":"https://api.github.com/repos/CPatchane/create-cozy-app/milestones{/number}","notifications_url":"https://api.github.com/repos/CPatchane/create-cozy-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CPatchane/create-cozy-app/labels{/name}","releases_url":"https://api.github.com/repos/CPatchane/create-cozy-app/releases{/id}","deployments_url":"https://api.github.com/repos/CPatchane/create-cozy-app/deployments","created_at":"2017-10-19T21:03:27Z","updated_at":"2018-06-26T09:15:47Z","pushed_at":"2018-06-26T10:58:50Z","git_url":"git://github.com/CPatchane/create-cozy-app.git","ssh_url":"git@github.com:CPatchane/create-cozy-app.git","clone_url":"https://github.com/CPatchane/create-cozy-app.git","svn_url":"https://github.com/CPatchane/create-cozy-app","homepage":null,"size":4632,"stargazers_count":8,"watchers_count":8,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":14,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":8,"open_issues":14,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CPatchane/create-cozy-app/pulls/622"},"html":{"href":"https://github.com/CPatchane/create-cozy-app/pull/622"},"issue":{"href":"https://api.github.com/repos/CPatchane/create-cozy-app/issues/622"},"comments":{"href":"https://api.github.com/repos/CPatchane/create-cozy-app/issues/622/comments"},"review_comments":{"href":"https://api.github.com/repos/CPatchane/create-cozy-app/pulls/622/comments"},"review_comment":{"href":"https://api.github.com/repos/CPatchane/create-cozy-app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CPatchane/create-cozy-app/pulls/622/commits"},"statuses":{"href":"https://api.github.com/repos/CPatchane/create-cozy-app/statuses/6f71cf63722fb388cb182d25533cc1ccd799a950"}},"author_association":"OWNER"}}
{"actor":{"display_login":"CPatchane"}}