ember-react-components icon indicating copy to clipboard operation
ember-react-components copied to clipboard

outputFile and lazy loading react/react-dom

Open jbailey4 opened this issue 5 years ago • 1 comments

This is a great addon and the use of a decorator to add React support within Ember is a nice solution.

Everything is working great at runtime, however, using the outputFile config option to lazy load react/react-dom is not actually splitting out the dependencies in a separate file.

I also tried to just use dynamic imports to load react and react-dom, since the app I work on also has ember-auto-import, but this doesn't work either.

It seems like react and react-dom always get added to the consuming app's vendor.js.

jbailey4 avatar Jun 12 '19 13:06 jbailey4