{"action":"closed","issue":{"url":"https://api.github.com/repos/sveltejs/svelte/issues/56","repository_url":"https://api.github.com/repos/sveltejs/svelte","labels_url":"https://api.github.com/repos/sveltejs/svelte/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/sveltejs/svelte/issues/56/comments","events_url":"https://api.github.com/repos/sveltejs/svelte/issues/56/events","html_url":"https://github.com/sveltejs/svelte/issues/56","id":192582805,"number":56,"title":"Error running import","user":{"login":"proyb6","id":16257425,"avatar_url":"https://avatars.githubusercontent.com/u/16257425?v=3","gravatar_id":"","url":"https://api.github.com/users/proyb6","html_url":"https://github.com/proyb6","followers_url":"https://api.github.com/users/proyb6/followers","following_url":"https://api.github.com/users/proyb6/following{/other_user}","gists_url":"https://api.github.com/users/proyb6/gists{/gist_id}","starred_url":"https://api.github.com/users/proyb6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/proyb6/subscriptions","organizations_url":"https://api.github.com/users/proyb6/orgs","repos_url":"https://api.github.com/users/proyb6/repos","events_url":"https://api.github.com/users/proyb6/events{/privacy}","received_events_url":"https://api.github.com/users/proyb6/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-30T14:42:21Z","updated_at":"2016-11-30T19:51:53Z","closed_at":"2016-11-30T19:51:53Z","body":"index.html\r\n```\r\n<html>\r\n<body>\r\n<main></main>\r\n<script>\r\nimport Wjs from \"./Wjs.html\";\r\n\r\nvar app = new Wjs({\r\n  target: document.querySelector( 'main' )\r\n});\r\n</script>\r\n</body>\r\n</html>\r\n```\r\n\r\nWjs.js\r\n```\r\n<div class='widget-container'>\r\n    <p>{{dynamic}}</p>\r\n</div>\r\n\r\n<script>\r\n  export default {\r\n    data () {\r\n      return {\r\n        dynamic: 'this can change'\r\n      }\r\n    },\r\n\r\n    components: {\r\n      Wjs\r\n    }\r\n  };\r\n</script>\r\n```\r\n\r\nConsole:\r\n```\r\nsvelte compile --format iife Wjs.html > Wjs.js\r\n```\r\nand run index.html on file:///Users/test/Desktop/svelte/project/index.html on Chrome and console is throwing an error?\r\n```\r\nUncaught SyntaxError: Unexpected token import line 5\r\n```\r\n\r\nChanging to other import syntax, the error is still persist.\r\n```\r\nimport Wjs from \"Wjs\";\r\nimport Wjs from \"./Wjs\";\r\nimport {Wjs} from \"./Wjs\";\r\nimport {Wjs} from \"Wjs\";\r\n```\r\n"}}
{"actor":{"display_login":"Rich-Harris"}}