{"action":"opened","issue":{"url":"https://api.github.com/repos/ohanhi/hyperscript-helpers/issues/34","repository_url":"https://api.github.com/repos/ohanhi/hyperscript-helpers","labels_url":"https://api.github.com/repos/ohanhi/hyperscript-helpers/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/ohanhi/hyperscript-helpers/issues/34/comments","events_url":"https://api.github.com/repos/ohanhi/hyperscript-helpers/issues/34/events","html_url":"https://github.com/ohanhi/hyperscript-helpers/issues/34","id":160865411,"number":34,"title":"Import error","user":{"login":"ivan-kleshnin","id":2128182,"avatar_url":"https://avatars.githubusercontent.com/u/2128182?v=3","gravatar_id":"","url":"https://api.github.com/users/ivan-kleshnin","html_url":"https://github.com/ivan-kleshnin","followers_url":"https://api.github.com/users/ivan-kleshnin/followers","following_url":"https://api.github.com/users/ivan-kleshnin/following{/other_user}","gists_url":"https://api.github.com/users/ivan-kleshnin/gists{/gist_id}","starred_url":"https://api.github.com/users/ivan-kleshnin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivan-kleshnin/subscriptions","organizations_url":"https://api.github.com/users/ivan-kleshnin/orgs","repos_url":"https://api.github.com/users/ivan-kleshnin/repos","events_url":"https://api.github.com/users/ivan-kleshnin/events{/privacy}","received_events_url":"https://api.github.com/users/ivan-kleshnin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-17T11:12:09Z","updated_at":"2016-06-17T11:12:09Z","closed_at":null,"body":"Since 3.0.0 I'm getting `_htmlTagNames2.default.forEach is not a function` \r\nwith non ES2016 environment.\r\n\r\nThat's because of mismatch between ES6 and CommonJS module systems\r\n\r\n1) **html-tag-names/index.js**\r\n\r\n`module.exports = require('./index.json');`\r\n\r\n2) **hyperscript-helpers/src/index.js**\r\n\r\n`import tagNames from 'html-tag-names';`\r\n\r\n3) **Generated code**\r\n\r\n```js\r\nvar _htmlTagNames = require('html-tag-names');\r\n\r\nvar _htmlTagNames2 = _interopRequireDefault(_htmlTagNames);\r\n\r\n...\r\n\r\nexports['default'] = function (h) {\r\n  var createTag = node(h);\r\n  var exported = { tagNames: _htmlTagNames2['default'], isSelector: isSelector, createTag: createTag };\r\n  _htmlTagNames2['default'].forEach(function (n) { // <-- `default` is undefined\r\n    exported[n] = createTag(n);\r\n  });\r\n  return exported;\r\n};\r\n```"}}
{"actor":{"display_login":"ivan-kleshnin"}}