payload: {"action":"opened","issue":{"url":"https://api.github.com/repos/marko-js/marko/issues/1450","repository_url":"https://api.github.com/repos/marko-js/marko","labels_url":"https://api.github.com/repos/marko-js/marko/issues/1450/labels{/name}","comments_url":"https://api.github.com/repos/marko-js/marko/issues/1450/comments","events_url":"https://api.github.com/repos/marko-js/marko/issues/1450/events","html_url":"https://github.com/marko-js/marko/issues/1450","id":520647672,"node_id":"MDU6SXNzdWU1MjA2NDc2NzI=","number":1450,"title":"Marko doesn't support babel plugins using lasso-babel-transform?","user":{"login":"pcanella","id":4923719,"node_id":"MDQ6VXNlcjQ5MjM3MTk=","avatar_url":"https://avatars0.githubusercontent.com/u/4923719?v=4","gravatar_id":"","url":"https://api.github.com/users/pcanella","html_url":"https://github.com/pcanella","followers_url":"https://api.github.com/users/pcanella/followers","following_url":"https://api.github.com/users/pcanella/following{/other_user}","gists_url":"https://api.github.com/users/pcanella/gists{/gist_id}","starred_url":"https://api.github.com/users/pcanella/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcanella/subscriptions","organizations_url":"https://api.github.com/users/pcanella/orgs","repos_url":"https://api.github.com/users/pcanella/repos","events_url":"https://api.github.com/users/pcanella/events{/privacy}","received_events_url":"https://api.github.com/users/pcanella/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-11-10T19:46:37Z","updated_at":"2019-11-10T19:46:37Z","closed_at":null,"author_association":"NONE","body":"### Marko Version: 4.18.x\r\n\r\n<!--- Provide the exact version of marko in which you see the bug.  You can run `npm ls marko` to see this. -->\r\n\r\n### Details\r\n\r\nAfter adding a plugin to my `.babelrc` file, I don't seem to be able to use the functionality in `index.marko` single component files. I was able to use it on non-Marko server side `.js` files with no issue, but with any sort of Marko file, it breaks. Here's my `lasso-config.json` file:\r\n\r\n```json\r\n\"babelOptions\": {\r\n    \"presets\": [\r\n        \"@babel/preset-env\"\r\n    ],\r\n    \"plugins\": [\r\n        \"@babel/plugin-proposal-optional-chaining\"\r\n    ]\r\n}\r\n```\r\n\r\nAm I forced to use `component.js` files or something for my plugins, rather than lasso looking at the `index.marko.js` file and properly babel transforming? \r\n\r\n### Expected Behavior\r\nMarko should see the babel plugin and transform as necessary\r\n\r\n### Actual Behavior\r\nWhen using the syntax the babel plugin rectifies, I get\r\n\r\n```\r\n const plugs = input.model?.features?.plugs;\r\n                            ^\r\n\r\nSyntaxError: Unexpected token .\r\n```\r\n\r\n### Possible Fix\r\n\r\n### Your Environment\r\n\r\n<!-- Include as many relevant details about the environment you experienced the bug in -->\r\n\r\n- Environment name and version: Node 10.15.3\r\n- Operating System and version (desktop or mobile): MacOS Mojave, Chrome, etc.\r\n- Link to your project: n/a (personal project)\r\n\r\n### Steps to Reproduce\r\n\r\n- install any babel plugin as shown above\r\n- Try to add that functionality to a single file `index.marko`\r\n- See it break\r\n"}}
other: {"actor":{"display_login":"pcanella"}}