{"action":"created","issue":{"url":"https://api.github.com/repos/babel/babelify/issues/281","repository_url":"https://api.github.com/repos/babel/babelify","labels_url":"https://api.github.com/repos/babel/babelify/issues/281/labels{/name}","comments_url":"https://api.github.com/repos/babel/babelify/issues/281/comments","events_url":"https://api.github.com/repos/babel/babelify/issues/281/events","html_url":"https://github.com/babel/babelify/issues/281","id":382149950,"node_id":"MDU6SXNzdWUzODIxNDk5NTA=","number":281,"title":"Boolean options fail (e.g. --compact true)","user":{"login":"mtmacdonald","id":2428859,"node_id":"MDQ6VXNlcjI0Mjg4NTk=","avatar_url":"https://avatars2.githubusercontent.com/u/2428859?v=4","gravatar_id":"","url":"https://api.github.com/users/mtmacdonald","html_url":"https://github.com/mtmacdonald","followers_url":"https://api.github.com/users/mtmacdonald/followers","following_url":"https://api.github.com/users/mtmacdonald/following{/other_user}","gists_url":"https://api.github.com/users/mtmacdonald/gists{/gist_id}","starred_url":"https://api.github.com/users/mtmacdonald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtmacdonald/subscriptions","organizations_url":"https://api.github.com/users/mtmacdonald/orgs","repos_url":"https://api.github.com/users/mtmacdonald/repos","events_url":"https://api.github.com/users/mtmacdonald/events{/privacy}","received_events_url":"https://api.github.com/users/mtmacdonald/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-19T10:31:09Z","updated_at":"2018-11-19T11:45:51Z","closed_at":null,"author_association":"NONE","body":"This command works:\r\n\r\n`babelify --compact auto --presets [ @babel/preset-env @babel/preset-react ]`\r\n\r\nBut if I change `--compact auto` to `--compact true`, I get an error:\r\n\r\n`Error: .compact must be a boolean, \"auto\", or undefined while parsing file`\r\n\r\nIt seems like boolean options are registered as strings and not boolean types. The failure seems to happen with Babelify 10 but not Babelify 8."},"comment":{"url":"https://api.github.com/repos/babel/babelify/issues/comments/439866391","html_url":"https://github.com/babel/babelify/issues/281#issuecomment-439866391","issue_url":"https://api.github.com/repos/babel/babelify/issues/281","id":439866391,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTg2NjM5MQ==","user":{"login":"goto-bus-stop","id":1006268,"node_id":"MDQ6VXNlcjEwMDYyNjg=","avatar_url":"https://avatars1.githubusercontent.com/u/1006268?v=4","gravatar_id":"","url":"https://api.github.com/users/goto-bus-stop","html_url":"https://github.com/goto-bus-stop","followers_url":"https://api.github.com/users/goto-bus-stop/followers","following_url":"https://api.github.com/users/goto-bus-stop/following{/other_user}","gists_url":"https://api.github.com/users/goto-bus-stop/gists{/gist_id}","starred_url":"https://api.github.com/users/goto-bus-stop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goto-bus-stop/subscriptions","organizations_url":"https://api.github.com/users/goto-bus-stop/orgs","repos_url":"https://api.github.com/users/goto-bus-stop/repos","events_url":"https://api.github.com/users/goto-bus-stop/events{/privacy}","received_events_url":"https://api.github.com/users/goto-bus-stop/received_events","type":"User","site_admin":false},"created_at":"2018-11-19T11:45:51Z","updated_at":"2018-11-19T11:45:51Z","author_association":"CONTRIBUTOR","body":"I think you may need to do `babelify --compact --presets` to set `compact: true`. And `--no-compact` to set `compact: false`."}}
{"actor":{"display_login":"goto-bus-stop"}}