{"action":"created","issue":{"url":"https://api.github.com/repos/jspm/jspm-cli/issues/1788","repository_url":"https://api.github.com/repos/jspm/jspm-cli","labels_url":"https://api.github.com/repos/jspm/jspm-cli/issues/1788/labels{/name}","comments_url":"https://api.github.com/repos/jspm/jspm-cli/issues/1788/comments","events_url":"https://api.github.com/repos/jspm/jspm-cli/issues/1788/events","html_url":"https://github.com/jspm/jspm-cli/issues/1788","id":153456327,"number":1788,"title":"Plugin that uses a bundle","user":{"login":"krasimir","id":528677,"avatar_url":"https://avatars.githubusercontent.com/u/528677?v=3","gravatar_id":"","url":"https://api.github.com/users/krasimir","html_url":"https://github.com/krasimir","followers_url":"https://api.github.com/users/krasimir/followers","following_url":"https://api.github.com/users/krasimir/following{/other_user}","gists_url":"https://api.github.com/users/krasimir/gists{/gist_id}","starred_url":"https://api.github.com/users/krasimir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krasimir/subscriptions","organizations_url":"https://api.github.com/users/krasimir/orgs","repos_url":"https://api.github.com/users/krasimir/repos","events_url":"https://api.github.com/users/krasimir/events{/privacy}","received_events_url":"https://api.github.com/users/krasimir/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-05-06T13:56:04Z","updated_at":"2016-05-07T16:22:54Z","closed_at":"2016-05-07T06:50:06Z","body":"Hello,\r\n\r\nI'm trying to integrate [cssx](https://github.com/krasimir/cssx) with jspm and I created the following plugin:\r\n\r\n```js\r\nvar cssxTranspiler = require('cssx-transpiler');\r\n\r\nexports.translate = function (load) {\r\n  return cssxTranspiler(load.source);\r\n};\r\n```\r\nI do resolve properly `cssx-transpiler` with\r\n\r\n```js\r\n\"npm:cssx-transpiler@5.0.0\": {\r\n  \"buffer\": \"github:jspm/nodelibs-buffer@0.1.0\",\r\n  \"process\": \"github:jspm/nodelibs-process@0.1.2\"\r\n}\r\n```\r\nThe problem is that `cssx-transpiler` is distributed as a bundle produced by browserify. Here is the file that is run by jspm https://raw.githubusercontent.com/krasimir/cssx/master/packages/cssx-transpiler/lib/cssx-transpiler.js\r\n\r\nAnd I have bunch of `requires` inside that bundle which make sense in the context of the bundle :) because it's browserify specific requires. What I have to do to make the `cssx-transpiler` working."},"comment":{"url":"https://api.github.com/repos/jspm/jspm-cli/issues/comments/217648537","html_url":"https://github.com/jspm/jspm-cli/issues/1788#issuecomment-217648537","issue_url":"https://api.github.com/repos/jspm/jspm-cli/issues/1788","id":217648537,"user":{"login":"amenadiel","id":238439,"avatar_url":"https://avatars.githubusercontent.com/u/238439?v=3","gravatar_id":"","url":"https://api.github.com/users/amenadiel","html_url":"https://github.com/amenadiel","followers_url":"https://api.github.com/users/amenadiel/followers","following_url":"https://api.github.com/users/amenadiel/following{/other_user}","gists_url":"https://api.github.com/users/amenadiel/gists{/gist_id}","starred_url":"https://api.github.com/users/amenadiel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amenadiel/subscriptions","organizations_url":"https://api.github.com/users/amenadiel/orgs","repos_url":"https://api.github.com/users/amenadiel/repos","events_url":"https://api.github.com/users/amenadiel/events{/privacy}","received_events_url":"https://api.github.com/users/amenadiel/received_events","type":"User","site_admin":false},"created_at":"2016-05-07T16:22:54Z","updated_at":"2016-05-07T16:22:54Z","body":"I'm doing the same on my less.js plugin and a couple of weeks ago they merged a similar modification I did for plugin-css. In the end, adding the transpiler to version control in the form of a single file is a more sane practice."}}