{"action":"created","issue":{"url":"https://api.github.com/repos/xkjyeah/vue-google-maps/issues/456","repository_url":"https://api.github.com/repos/xkjyeah/vue-google-maps","labels_url":"https://api.github.com/repos/xkjyeah/vue-google-maps/issues/456/labels{/name}","comments_url":"https://api.github.com/repos/xkjyeah/vue-google-maps/issues/456/comments","events_url":"https://api.github.com/repos/xkjyeah/vue-google-maps/issues/456/events","html_url":"https://github.com/xkjyeah/vue-google-maps/issues/456","id":346560347,"node_id":"MDU6SXNzdWUzNDY1NjAzNDc=","number":456,"title":"IE11 Syntax Error","user":{"login":"warlord0","id":9975039,"node_id":"MDQ6VXNlcjk5NzUwMzk=","avatar_url":"https://avatars2.githubusercontent.com/u/9975039?v=4","gravatar_id":"","url":"https://api.github.com/users/warlord0","html_url":"https://github.com/warlord0","followers_url":"https://api.github.com/users/warlord0/followers","following_url":"https://api.github.com/users/warlord0/following{/other_user}","gists_url":"https://api.github.com/users/warlord0/gists{/gist_id}","starred_url":"https://api.github.com/users/warlord0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/warlord0/subscriptions","organizations_url":"https://api.github.com/users/warlord0/orgs","repos_url":"https://api.github.com/users/warlord0/repos","events_url":"https://api.github.com/users/warlord0/events{/privacy}","received_events_url":"https://api.github.com/users/warlord0/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-08-01T11:30:08Z","updated_at":"2018-08-01T18:03:46Z","closed_at":null,"author_association":"NONE","body":"I'm trying to use maps in a Laravel app using Vue.js. It works just great in Chrome including it in my app.js\r\n\r\n```javascript\r\n/**\r\n * VueGoogleMaps can't get it working in IE11 :(\r\n */\r\nimport * as VueGoogleMaps from 'vue2-google-maps'\r\nVue.use(VueGoogleMaps, {\r\n  load: {\r\n    key: 'mykey',\r\n    libraries: 'places'\r\n  }\r\n})\r\n```\r\nIn my component I add it and can add markers, move the map etc. all great.\r\n```vue\r\n        <GmapMap\r\n          id=\"goomap\"\r\n          ref=\"map\"\r\n          :center=\"{lng: -1.2049487, lat: 52.7590669}\"\r\n          :zoom=\"18\"\r\n          class=\"col-md-8\"\r\n          style=\"min-height: 500px;\"\r\n        >\r\n          <GmapMarker\r\n            v-for=\"(m, index) in markers\"\r\n            :key=\"index\"\r\n            :position=\"m.position\"\r\n            :clickable=\"true\"\r\n            :draggable=\"true\"\r\n            @click=\"center=m.position\"\r\n          />\r\n        </GmapMap>\r\n```\r\nBut when I look in IE11 I get `SCRIPT1002: Syntax Error` in my compiled `app.js`.\r\n\r\nAfter a lot of smashing head on desk I decided to separate out the `.js` by copying the asset in and pointing directly to the `.js` in my page. Then commenting out the `import` in my `app.js`.\r\n```html\r\n<script src=\"/js/vue-google-maps.js\"></script>\r\n```\r\nAgain, works fine in chrome. But in IE11 at least now I see the error is in `vue-google-maps.js` unfortunately the minified version :(\r\n\r\nHow do I build a non-minified version so I can pick up the error more specifically?"},"comment":{"url":"https://api.github.com/repos/xkjyeah/vue-google-maps/issues/comments/409667113","html_url":"https://github.com/xkjyeah/vue-google-maps/issues/456#issuecomment-409667113","issue_url":"https://api.github.com/repos/xkjyeah/vue-google-maps/issues/456","id":409667113,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTY2NzExMw==","user":{"login":"warlord0","id":9975039,"node_id":"MDQ6VXNlcjk5NzUwMzk=","avatar_url":"https://avatars2.githubusercontent.com/u/9975039?v=4","gravatar_id":"","url":"https://api.github.com/users/warlord0","html_url":"https://github.com/warlord0","followers_url":"https://api.github.com/users/warlord0/followers","following_url":"https://api.github.com/users/warlord0/following{/other_user}","gists_url":"https://api.github.com/users/warlord0/gists{/gist_id}","starred_url":"https://api.github.com/users/warlord0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/warlord0/subscriptions","organizations_url":"https://api.github.com/users/warlord0/orgs","repos_url":"https://api.github.com/users/warlord0/repos","events_url":"https://api.github.com/users/warlord0/events{/privacy}","received_events_url":"https://api.github.com/users/warlord0/received_events","type":"User","site_admin":false},"created_at":"2018-08-01T18:03:46Z","updated_at":"2018-08-01T18:03:46Z","author_association":"NONE","body":"Ooh gonna have to give that a go.\r\n\r\nI got a bit further and the problem seems to be in lazy-value:\r\n\r\n```javascript\r\nmodule.exports = fn => { // This is where IE11 stops\r\n\tlet called = false;\r\n\tlet ret;\r\n\r\n\treturn () => {\r\n\t\tif (!called) {\r\n\t\t\tcalled = true;\r\n\t\t\tret = fn();\r\n\t\t}\r\n\r\n\t\treturn ret;\r\n\t};\r\n};\r\n```\r\n"}}
{"actor":{"display_login":"warlord0"}}