{"action":"created","issue":{"url":"https://api.github.com/repos/stealjs/steal-tools/issues/328","labels_url":"https://api.github.com/repos/stealjs/steal-tools/issues/328/labels{/name}","comments_url":"https://api.github.com/repos/stealjs/steal-tools/issues/328/comments","events_url":"https://api.github.com/repos/stealjs/steal-tools/issues/328/events","html_url":"https://github.com/stealjs/steal-tools/issues/328","id":116542677,"number":328,"title":"Better Transpiling error reporting","user":{"login":"whitecolor","id":736697,"avatar_url":"https://avatars.githubusercontent.com/u/736697?v=3","gravatar_id":"","url":"https://api.github.com/users/whitecolor","html_url":"https://github.com/whitecolor","followers_url":"https://api.github.com/users/whitecolor/followers","following_url":"https://api.github.com/users/whitecolor/following{/other_user}","gists_url":"https://api.github.com/users/whitecolor/gists{/gist_id}","starred_url":"https://api.github.com/users/whitecolor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whitecolor/subscriptions","organizations_url":"https://api.github.com/users/whitecolor/orgs","repos_url":"https://api.github.com/users/whitecolor/repos","events_url":"https://api.github.com/users/whitecolor/events{/privacy}","received_events_url":"https://api.github.com/users/whitecolor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-12T12:46:06Z","updated_at":"2015-11-12T14:20:08Z","closed_at":null,"body":"I've have an error on such case:\r\nThere was a module that was actually CJS (it used `require` for importing modules) but inside the code I inaccrately used ES6 style strings using ` character. An it worked in dev mode. But could not build.\r\n\r\nIt would be nicier if such errors could be indefntified more precisely in thrown error report (at least module where error has been detected).\r\n\r\nThe error stack, no clue what app's module caused the error, etc:\r\n```\r\nTranspiling...\r\nPotentially unhandled rejection [1] Error: Line 336: Unexpected token ILLEGAL\r\n    at throwError (...\\steal-tools\\node_modules\\transpile\\node_modules\\esprima\\esprima.js:1828:21)\r\n    at scanPunctuator (...\\steal-tools\\node_modules\\transpile\\node_modules\\esprima\\esprima.js:804:9)\r\n    at advance (...\\steal-tools\\node_modules\\transpile\\node_modules\\esprima\\esprima.js:1299:16)\r\n    at lex (...\\steal-tools\\node_modules\\transpile\\node_modules\\esprima\\esprima.js:1342:78)\r\n    at expect (...\\steal-tools\\node_modules\\transpile\\node_modules\\esprima\\esprima.js:1888:21)\r\n    at parseObjectProperty (...\\steal-tools\\node_modules\\transpile\\node_modules\\esprima\\esprima.js:2063:13)\r\n    at parseObjectInitialiser (...\\steal-tools\\node_modules\\transpile\\node_modules\\esprima\\esprima.js:2083:24)\r\n    at parsePrimaryExpression (...\\steal-tools\\node_modules\\transpile\\node_modules\\esprima\\esprima.js:2176:20)\r\n    at parseLeftHandSideExpressionAllowCall (...\\steal-tools\\node_modules\\transpile\\node_modules\\esprima\\esprima.js:2264:61)\r\n    at parsePostfixExpression (...\\steal-tools\\node_modules\\transpile\\node_modules\\esprima\\esprima.js:2317:16)\r\n```"},"comment":{"url":"https://api.github.com/repos/stealjs/steal-tools/issues/comments/156113968","html_url":"https://github.com/stealjs/steal-tools/issues/328#issuecomment-156113968","issue_url":"https://api.github.com/repos/stealjs/steal-tools/issues/328","id":156113968,"user":{"login":"matthewp","id":361671,"avatar_url":"https://avatars.githubusercontent.com/u/361671?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewp","html_url":"https://github.com/matthewp","followers_url":"https://api.github.com/users/matthewp/followers","following_url":"https://api.github.com/users/matthewp/following{/other_user}","gists_url":"https://api.github.com/users/matthewp/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewp/subscriptions","organizations_url":"https://api.github.com/users/matthewp/orgs","repos_url":"https://api.github.com/users/matthewp/repos","events_url":"https://api.github.com/users/matthewp/events{/privacy}","received_events_url":"https://api.github.com/users/matthewp/received_events","type":"User","site_admin":false},"created_at":"2015-11-12T14:20:08Z","updated_at":"2015-11-12T14:20:08Z","body":"I was able to recreate it, going to make sure there's a better error here."}}