{"action":"closed","issue":{"url":"https://api.github.com/repos/browserify-rails/browserify-rails/issues/142","repository_url":"https://api.github.com/repos/browserify-rails/browserify-rails","labels_url":"https://api.github.com/repos/browserify-rails/browserify-rails/issues/142/labels{/name}","comments_url":"https://api.github.com/repos/browserify-rails/browserify-rails/issues/142/comments","events_url":"https://api.github.com/repos/browserify-rails/browserify-rails/issues/142/events","html_url":"https://github.com/browserify-rails/browserify-rails/issues/142","id":137315037,"number":142,"title":"Files with ES6 `import` are skipped","user":{"login":"fenec","id":614253,"avatar_url":"https://avatars.githubusercontent.com/u/614253?v=3","gravatar_id":"","url":"https://api.github.com/users/fenec","html_url":"https://github.com/fenec","followers_url":"https://api.github.com/users/fenec/followers","following_url":"https://api.github.com/users/fenec/following{/other_user}","gists_url":"https://api.github.com/users/fenec/gists{/gist_id}","starred_url":"https://api.github.com/users/fenec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fenec/subscriptions","organizations_url":"https://api.github.com/users/fenec/orgs","repos_url":"https://api.github.com/users/fenec/repos","events_url":"https://api.github.com/users/fenec/events{/privacy}","received_events_url":"https://api.github.com/users/fenec/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-02-29T17:17:29Z","updated_at":"2016-03-03T18:37:33Z","closed_at":"2016-03-03T18:37:33Z","body":"`def commonjs_module?` doesn't check file for the inclusion of `import` keyword, thus files with only imports will be skipped by browserify.\r\n\r\nprobably an additional check should be added:\r\n`|| data.to_s.include?(\"import\")`\r\n\r\nhttps://github.com/browserify-rails/browserify-rails/blob/5820330648fca48cd348641432599ce1f80e905f/lib/browserify-rails/browserify_processor.rb#L114\r\n"}}