@nullnullnull wrote:
Typically, when I generate a file for an addon, it adds files to both the
addonandappdirectories. In turn,requirejs.entriescontains references to both the addon's original file and the version consumed by the app itself. For instance, if I had generated a Foo component,requirejs.entrieswould have both:my-addon/components/foo my-app/components/fooNow let's say that I want a directory to contain classes that don't fit neatly into what Ember already offers (components, services, models, etc). Let's call the directory
bazs, and give it a Foo of it's own. Next, we'll go into theappsdirectory and create abazsfolder there, then create afoo.jswhich imports the addon'sbazs/fooand re-exports it.After all this, I would expect
requirejs.entriesto have a reference tobazs/fooin both the addon and app, but instead it only appears:my-addon/bazs/fooI haven't worked very intimately with the resolver (I'm assuming this is the resolver's responsibility), and so I'm not sure why this is happening. Anybody have insights? And if I wanted the app to also have reference to
bazs, anybody know of a way to make that happen?
Posts: 1
Participants: 1