knownasilya / ember-toggle

Checkbox based Toggle Switches for Ember
http://knownasilya.github.io/ember-toggle/
MIT License
112 stars 52 forks source link

Pod structure makes x-toggle undiscoverable for some apps #40

Closed ef4 closed 8 years ago

ef4 commented 8 years ago

If an app customizes podModulePrefix, their resolver won't find app/components/x-toggle/component.js.

I think the only way for addons to remain 100% compatible is to stick with the stock structure (app/components/x-toggle.js).

ef4 commented 8 years ago

It's possible to workaround this within an app by creating app/components/x-toggle.js explicitly and doing the reexport:

export { default } from 'ember-cli-toggle/components/x-toggle/component';
knownasilya commented 8 years ago

Already fixed with 0.6.1https://github.com/knownasilya/ember-cli-toggle/commit/3705bcc59a73aa00b406849c40ad7ec27ac30158 see the 0.x branch.