{"action":"created","issue":{"url":"https://api.github.com/repos/JeffreyWay/laravel-mix/issues/1906","repository_url":"https://api.github.com/repos/JeffreyWay/laravel-mix","labels_url":"https://api.github.com/repos/JeffreyWay/laravel-mix/issues/1906/labels{/name}","comments_url":"https://api.github.com/repos/JeffreyWay/laravel-mix/issues/1906/comments","events_url":"https://api.github.com/repos/JeffreyWay/laravel-mix/issues/1906/events","html_url":"https://github.com/JeffreyWay/laravel-mix/issues/1906","id":395155485,"node_id":"MDU6SXNzdWUzOTUxNTU0ODU=","number":1906,"title":"Babel doesn't transform libraries in node_modules","user":{"login":"leo108","id":1551716,"node_id":"MDQ6VXNlcjE1NTE3MTY=","avatar_url":"https://avatars1.githubusercontent.com/u/1551716?v=4","gravatar_id":"","url":"https://api.github.com/users/leo108","html_url":"https://github.com/leo108","followers_url":"https://api.github.com/users/leo108/followers","following_url":"https://api.github.com/users/leo108/following{/other_user}","gists_url":"https://api.github.com/users/leo108/gists{/gist_id}","starred_url":"https://api.github.com/users/leo108/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leo108/subscriptions","organizations_url":"https://api.github.com/users/leo108/orgs","repos_url":"https://api.github.com/users/leo108/repos","events_url":"https://api.github.com/users/leo108/events{/privacy}","received_events_url":"https://api.github.com/users/leo108/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2019-01-02T05:58:22Z","updated_at":"2019-01-04T09:02:05Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"-   Laravel Mix Version: 4.0.12\r\n-   Node Version: 8.12.0\r\n-   NPM Version: 6.4.1\r\n-   OS: macOS 10.14.2\r\n\r\n### Description:\r\n\r\nBabel doesn't transform libraries in node_modules, e.g. arrow functions / classes\r\n\r\n### Steps To Reproduce:\r\n\r\n0. create a fresh new Laravel project\r\n\r\n```\r\n$ laravel new mix-test\r\n```\r\n\r\n1. add vanilla-lazyload as node dependency\r\n\r\n```\r\n$ yarn add vanilla-lazyload\r\n```\r\n\r\n2. require vanilla-lazyload in bootstrap\r\n\r\n*resources/js/bootstrap.js*\r\n\r\n```\r\nwindow.LazyLoad = require(\"vanilla-lazyload\");\r\n```\r\n\r\n3. run `yarn watch`\r\n\r\n```\r\n$ yarn watch\r\n```\r\n\r\n4. open *public/js/app.js*\r\n\r\nand search `getDefaultSettings`\r\n\r\nwill see\r\n\r\n```\r\nvar getDefaultSettings = () => ({\r\n\telements_selector: \"img\",\r\n\t.\r\n        .\r\n        .\r\n});\r\n```\r\n\r\nand this will cause a syntax error in IE11."},"comment":{"url":"https://api.github.com/repos/JeffreyWay/laravel-mix/issues/comments/451388926","html_url":"https://github.com/JeffreyWay/laravel-mix/issues/1906#issuecomment-451388926","issue_url":"https://api.github.com/repos/JeffreyWay/laravel-mix/issues/1906","id":451388926,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MTM4ODkyNg==","user":{"login":"leo108","id":1551716,"node_id":"MDQ6VXNlcjE1NTE3MTY=","avatar_url":"https://avatars1.githubusercontent.com/u/1551716?v=4","gravatar_id":"","url":"https://api.github.com/users/leo108","html_url":"https://github.com/leo108","followers_url":"https://api.github.com/users/leo108/followers","following_url":"https://api.github.com/users/leo108/following{/other_user}","gists_url":"https://api.github.com/users/leo108/gists{/gist_id}","starred_url":"https://api.github.com/users/leo108/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leo108/subscriptions","organizations_url":"https://api.github.com/users/leo108/orgs","repos_url":"https://api.github.com/users/leo108/repos","events_url":"https://api.github.com/users/leo108/events{/privacy}","received_events_url":"https://api.github.com/users/leo108/received_events","type":"User","site_admin":false},"created_at":"2019-01-04T09:02:05Z","updated_at":"2019-01-04T09:02:05Z","author_association":"CONTRIBUTOR","body":"@ankurk91 I don't think polyfill can make IE support `arrow function` `classes` etc."}}
{"actor":{"display_login":"leo108"}}