@nullnullnull wrote:
Typically, when I generate a file for an addon, it adds files to both the
addon
andapp
directories. In turn,requirejs.entries
contains 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.entries
would have both:my-addon/components/foo my-app/components/foo
Now 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 theapps
directory and create abazs
folder there, then create afoo.js
which imports the addon'sbazs/foo
and re-exports it.After all this, I would expect
requirejs.entries
to have a reference tobazs/foo
in both the addon and app, but instead it only appears:my-addon/bazs/foo
I 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