{"action":"opened","issue":{"url":"https://api.github.com/repos/peerigon/extract-loader/issues/46","repository_url":"https://api.github.com/repos/peerigon/extract-loader","labels_url":"https://api.github.com/repos/peerigon/extract-loader/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/peerigon/extract-loader/issues/46/comments","events_url":"https://api.github.com/repos/peerigon/extract-loader/issues/46/events","html_url":"https://github.com/peerigon/extract-loader/issues/46","id":362961173,"node_id":"MDU6SXNzdWUzNjI5NjExNzM=","number":46,"title":"SyntaxError: Unexpected identifier","user":{"login":"borela","id":11317458,"node_id":"MDQ6VXNlcjExMzE3NDU4","avatar_url":"https://avatars3.githubusercontent.com/u/11317458?v=4","gravatar_id":"","url":"https://api.github.com/users/borela","html_url":"https://github.com/borela","followers_url":"https://api.github.com/users/borela/followers","following_url":"https://api.github.com/users/borela/following{/other_user}","gists_url":"https://api.github.com/users/borela/gists{/gist_id}","starred_url":"https://api.github.com/users/borela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/borela/subscriptions","organizations_url":"https://api.github.com/users/borela/orgs","repos_url":"https://api.github.com/users/borela/repos","events_url":"https://api.github.com/users/borela/events{/privacy}","received_events_url":"https://api.github.com/users/borela/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-23T17:33:11Z","updated_at":"2018-09-23T17:33:11Z","closed_at":null,"author_association":"NONE","body":"I am loading an HTML file through the latest HTML loader(@1.0.0-alpha.0) and extract loader(@3.0.0):\r\n\r\n```\r\n{\r\n    test: /\\.html$/,\r\n    use: [{\r\n      loader: 'extract-loader',\r\n    }, {\r\n      loader: 'html-loader',\r\n    }],\r\n}\r\n```\r\n\r\nI created a plugin to peek at the result from the HTML loader, it is as follows:\r\n```\r\nimport HTML__URL__0 from './logo.svg';\r\n\r\n\r\n// HTML\r\nexport default `<!doctype html>\r\n<html>\r\n  <head>\r\n    <title>Test</title>\r\n    <link rel=\"stylesheet\" href=\"//cdnjs.cloudflare.com/ajax/libs/normalize/8.0.0/normalize.min.css\">\r\n  </head>\r\n  <body>\r\n    <div id=\"root\"></div>\r\n    <img src=\"${HTML__URL__0}\">\r\n  </body>\r\n</html>\r\n`\r\n```\r\n\r\nWhen the extract loader tries to execute this code, the error message is as follows:\r\n\r\n```\r\nUnhandledPromiseRejectionWarning: evalmachine.<anonymous>:2\r\nimport HTML__URL__0 from './logo.svg';\r\n       ^^^^^^^^^^^^\r\n\r\nSyntaxError: Unexpected identifier\r\n```\r\n\r\n"}}
{"actor":{"display_login":"borela"}}