{"action":"created","issue":{"url":"https://api.github.com/repos/krasimir/cssx/issues/26","repository_url":"https://api.github.com/repos/krasimir/cssx","labels_url":"https://api.github.com/repos/krasimir/cssx/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/krasimir/cssx/issues/26/comments","events_url":"https://api.github.com/repos/krasimir/cssx/issues/26/events","html_url":"https://github.com/krasimir/cssx/issues/26","id":217744526,"number":26,"title":"SyntaxError: Unexpected token, with TypeScript files. :{","user":{"login":"trusktr","id":297678,"avatar_url":"https://avatars0.githubusercontent.com/u/297678?v=3","gravatar_id":"","url":"https://api.github.com/users/trusktr","html_url":"https://github.com/trusktr","followers_url":"https://api.github.com/users/trusktr/followers","following_url":"https://api.github.com/users/trusktr/following{/other_user}","gists_url":"https://api.github.com/users/trusktr/gists{/gist_id}","starred_url":"https://api.github.com/users/trusktr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trusktr/subscriptions","organizations_url":"https://api.github.com/users/trusktr/orgs","repos_url":"https://api.github.com/users/trusktr/repos","events_url":"https://api.github.com/users/trusktr/events{/privacy}","received_events_url":"https://api.github.com/users/trusktr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-03-29T02:11:53Z","updated_at":"2017-03-30T00:55:04Z","closed_at":null,"body":"I was trying to use this with TypeScript, but it fails. Trying to compile with TypeScript first fails with SyntaxErrors too.\r\n\r\nExample webpack.config.js:\r\n\r\n```js\r\nvar webpack = require('webpack');\r\n\r\nmodule.exports = {\r\n  entry: '...',\r\n  devtool: 'source-map',\r\n  output: {\r\n    path: '...',\r\n    filename: 'bundle.js'\r\n  },\r\n  module: {\r\n    rules: [\r\n      {\r\n        test: /(\\.tsx)$/,\r\n        use: ['ts-loader', 'cssx-loader'],\r\n        exclude: /node_modules/\r\n      }\r\n    ]\r\n  }\r\n};\r\n```\r\n\r\nOne problem, for example, is with a file that has this in it:\r\n\r\n```js\r\nexport = function() {...}\r\n```\r\n\r\nSeems that CSSX doesn't know what to do with that TypeScript-style export."},"comment":{"url":"https://api.github.com/repos/krasimir/cssx/issues/comments/290270062","html_url":"https://github.com/krasimir/cssx/issues/26#issuecomment-290270062","issue_url":"https://api.github.com/repos/krasimir/cssx/issues/26","id":290270062,"user":{"login":"trusktr","id":297678,"avatar_url":"https://avatars0.githubusercontent.com/u/297678?v=3","gravatar_id":"","url":"https://api.github.com/users/trusktr","html_url":"https://github.com/trusktr","followers_url":"https://api.github.com/users/trusktr/followers","following_url":"https://api.github.com/users/trusktr/following{/other_user}","gists_url":"https://api.github.com/users/trusktr/gists{/gist_id}","starred_url":"https://api.github.com/users/trusktr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trusktr/subscriptions","organizations_url":"https://api.github.com/users/trusktr/orgs","repos_url":"https://api.github.com/users/trusktr/repos","events_url":"https://api.github.com/users/trusktr/events{/privacy}","received_events_url":"https://api.github.com/users/trusktr/received_events","type":"User","site_admin":false},"created_at":"2017-03-30T00:55:04Z","updated_at":"2017-03-30T00:55:04Z","body":"What about also supporting template strings? So instead of\r\n\r\n```jsx\r\nlet style = <style>\r\n  input {\r\n    color: red;\r\n  }\r\n<style>\r\n```\r\n\r\nwe can write\r\n\r\n```js\r\nlet style = cssx`\r\n  input {\r\n    color: red;\r\n  }\r\n`\r\n```\r\n\r\nand CSSX can transpile that (with optional leaving it as is and it would work at runtime too)?"}}
{"actor":{"display_login":"trusktr"}}