{"action":"created","issue":{"url":"https://api.github.com/repos/Polymer/tools/issues/736","repository_url":"https://api.github.com/repos/Polymer/tools","labels_url":"https://api.github.com/repos/Polymer/tools/issues/736/labels{/name}","comments_url":"https://api.github.com/repos/Polymer/tools/issues/736/comments","events_url":"https://api.github.com/repos/Polymer/tools/issues/736/events","html_url":"https://github.com/Polymer/tools/issues/736","id":370272447,"node_id":"MDU6SXNzdWUzNzAyNzI0NDc=","number":736,"title":"[build] polymer build does not handle .mjs files","user":{"login":"keanulee","id":1319720,"node_id":"MDQ6VXNlcjEzMTk3MjA=","avatar_url":"https://avatars1.githubusercontent.com/u/1319720?v=4","gravatar_id":"","url":"https://api.github.com/users/keanulee","html_url":"https://github.com/keanulee","followers_url":"https://api.github.com/users/keanulee/followers","following_url":"https://api.github.com/users/keanulee/following{/other_user}","gists_url":"https://api.github.com/users/keanulee/gists{/gist_id}","starred_url":"https://api.github.com/users/keanulee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keanulee/subscriptions","organizations_url":"https://api.github.com/users/keanulee/orgs","repos_url":"https://api.github.com/users/keanulee/repos","events_url":"https://api.github.com/users/keanulee/events{/privacy}","received_events_url":"https://api.github.com/users/keanulee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-10-15T17:47:19Z","updated_at":"2018-11-28T14:30:24Z","closed_at":null,"author_association":"MEMBER","body":"Unlike `polymer serve`, `polymer build` doesn't know to treat .mjs files as JavaScript files.\r\n\r\n```\r\nimport {\r\n  createStore,\r\n  compose,\r\n  applyMiddleware,\r\n  combineReducers\r\n} from 'redux/es/redux.mjs';\r\n       ~~~~~~~~~~~~~~~~~~~~\r\n\r\nfile:///Users/keanulee/Code/Polymer/pwa-starter-kit/src/store.js(16,8) error [could-not-load] - Unable to load import: No parser for for file type mjs\r\n```\r\n\r\nAnother example: https://github.com/Polymer/pwa-starter-kit/pull/249"},"comment":{"url":"https://api.github.com/repos/Polymer/tools/issues/comments/442466177","html_url":"https://github.com/Polymer/tools/issues/736#issuecomment-442466177","issue_url":"https://api.github.com/repos/Polymer/tools/issues/736","id":442466177,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MjQ2NjE3Nw==","user":{"login":"web-padawan","id":10589913,"node_id":"MDQ6VXNlcjEwNTg5OTEz","avatar_url":"https://avatars2.githubusercontent.com/u/10589913?v=4","gravatar_id":"","url":"https://api.github.com/users/web-padawan","html_url":"https://github.com/web-padawan","followers_url":"https://api.github.com/users/web-padawan/followers","following_url":"https://api.github.com/users/web-padawan/following{/other_user}","gists_url":"https://api.github.com/users/web-padawan/gists{/gist_id}","starred_url":"https://api.github.com/users/web-padawan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/web-padawan/subscriptions","organizations_url":"https://api.github.com/users/web-padawan/orgs","repos_url":"https://api.github.com/users/web-padawan/repos","events_url":"https://api.github.com/users/web-padawan/events{/privacy}","received_events_url":"https://api.github.com/users/web-padawan/received_events","type":"User","site_admin":false},"created_at":"2018-11-28T14:30:24Z","updated_at":"2018-11-28T14:30:24Z","author_association":"CONTRIBUTOR","body":"Is there any agreement around `.mjs` extension set in stone anywhere so that we could refer to?\r\nThe statement like \"because people are using it\" does not provide enough information about whether people are doing right and isn't it too early to use that extension at this point.\r\n\r\nEspecially, webpack maintainer expressed the position regarding `.mjs` here: https://github.com/webpack/webpack/issues/7482#issuecomment-394838925 \r\n\r\n> Note that .mjs and ESM in .js behaves different. .mjs tries to be as compatible as possible to node.js. This means no module field and no __esModule for .mjs files. Also note that .mjs is still experimental until node.js support has finalized.\r\n"}}
{"actor":{"display_login":"web-padawan"}}