{"action":"created","issue":{"url":"https://api.github.com/repos/sgmap/ludwig/issues/22","repository_url":"https://api.github.com/repos/sgmap/ludwig","labels_url":"https://api.github.com/repos/sgmap/ludwig/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/sgmap/ludwig/issues/22/comments","events_url":"https://api.github.com/repos/sgmap/ludwig/issues/22/events","html_url":"https://github.com/sgmap/ludwig/issues/22","id":142377720,"number":22,"title":"Can't use Ludwig widget in a webpack environment","user":{"login":"MattiSG","id":222463,"avatar_url":"https://avatars.githubusercontent.com/u/222463?v=3","gravatar_id":"","url":"https://api.github.com/users/MattiSG","html_url":"https://github.com/MattiSG","followers_url":"https://api.github.com/users/MattiSG/followers","following_url":"https://api.github.com/users/MattiSG/following{/other_user}","gists_url":"https://api.github.com/users/MattiSG/gists{/gist_id}","starred_url":"https://api.github.com/users/MattiSG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattiSG/subscriptions","organizations_url":"https://api.github.com/users/MattiSG/orgs","repos_url":"https://api.github.com/users/MattiSG/repos","events_url":"https://api.github.com/users/MattiSG/events{/privacy}","received_events_url":"https://api.github.com/users/MattiSG/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"MattiSG","id":222463,"avatar_url":"https://avatars.githubusercontent.com/u/222463?v=3","gravatar_id":"","url":"https://api.github.com/users/MattiSG","html_url":"https://github.com/MattiSG","followers_url":"https://api.github.com/users/MattiSG/followers","following_url":"https://api.github.com/users/MattiSG/following{/other_user}","gists_url":"https://api.github.com/users/MattiSG/gists{/gist_id}","starred_url":"https://api.github.com/users/MattiSG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattiSG/subscriptions","organizations_url":"https://api.github.com/users/MattiSG/orgs","repos_url":"https://api.github.com/users/MattiSG/repos","events_url":"https://api.github.com/users/MattiSG/events{/privacy}","received_events_url":"https://api.github.com/users/MattiSG/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2016-03-21T15:10:40Z","updated_at":"2016-03-31T14:38:12Z","closed_at":null,"body":"If I follow the instructions and copy the `bundle.js` in my own app, I can't use Ludwig as `import Ludwig from './bundle.js'`, for example, as it is already compiled as an entry point."},"comment":{"url":"https://api.github.com/repos/sgmap/ludwig/issues/comments/203968302","html_url":"https://github.com/sgmap/ludwig/issues/22#issuecomment-203968302","issue_url":"https://api.github.com/repos/sgmap/ludwig/issues/22","id":203968302,"user":{"login":"MattiSG","id":222463,"avatar_url":"https://avatars.githubusercontent.com/u/222463?v=3","gravatar_id":"","url":"https://api.github.com/users/MattiSG","html_url":"https://github.com/MattiSG","followers_url":"https://api.github.com/users/MattiSG/followers","following_url":"https://api.github.com/users/MattiSG/following{/other_user}","gists_url":"https://api.github.com/users/MattiSG/gists{/gist_id}","starred_url":"https://api.github.com/users/MattiSG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattiSG/subscriptions","organizations_url":"https://api.github.com/users/MattiSG/orgs","repos_url":"https://api.github.com/users/MattiSG/repos","events_url":"https://api.github.com/users/MattiSG/events{/privacy}","received_events_url":"https://api.github.com/users/MattiSG/received_events","type":"User","site_admin":false},"created_at":"2016-03-31T14:38:11Z","updated_at":"2016-03-31T14:38:11Z","body":"Ok, so with the current publishing, I indeed can serve directly, either through a route or through `import './node_modules/sgmap.ludwig/dist/bundle.js';`. However, that will expose `Ludwig` in `window`.\r\n\r\nI would like to `import Ludwig from 'sgmap.ludwig'`, keep compilation to myself and not expose in `window` by default. Does this sound doable?"}}