{ "id": "176279", "key": "ALOY-1749", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "21253", "name": "Alloy 1.16.4", "archived": false, "released": true, "releaseDate": "2021-09-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2021-09-17T14:54:38.000+0000", "created": "2021-09-06T10:12:37.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "updated": "2021-11-16T18:17:33.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [], "description": "h5.Description\r\n\r\nWhen attempting to use the babel config to ignore files, it errors with {{Error: Configuration contains string/RegExp pattern, but no filename was passed to Babel}}.\r\n\r\nWe should pass the filename to babel so that we can support users doing this, it might be slightly tricky as to get the source filename we need to look it up in the {{data}} variable in {{generateCodeAndSourceMap}} but if we fallback to using the {{target.filename}} property (i.e where it will be written to) I think we should avoid any errrors.\r\n\r\nh5.Steps to reproduce\r\n\r\n1. Create an alloy project\r\n2. Run {{npm init -y && npm i esquery}}\r\n3. Create a babel.config.json file with the below contents\r\n{code}\r\n{\r\n\t\"ignore\": [\r\n\t\t\"node_modules/esquery/**\"\r\n ]\r\n}\r\n\r\n{code}\r\n4. Run {{alloy compile --config platform=ios}}\r\n\r\nh5.Actual\r\n\r\nAbove error occurs\r\n\r\nh5.Expected\r\n\r\nNo error", "attachment": [], "flagged": false, "summary": "Cannot use babel config to ignore files from babel", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": null, "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }