You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently @ngconf, but couldn't ask this question due to the large crowd. I heard you answer a similar question, and you mentioned that for a number of reasons (including security) there are no real plans for webpack to support dynamic importing of external modules. In our scenario, we need two separate projects that will get recompiled for production at two different cadences independently.
Is it possible to "trick" webpack in anyway by adding an empty module of the same name at a certain external url at compile time, and then at runtime populating said module with more things (like an ngfactory)? Or would you recommend just going a completely different route like systemJS at that point?
The text was updated successfully, but these errors were encountered:
Personally, to ensure that you are getting yourself too deep in the weeds of hacky webpack practices, I'd personally recommend that you look into using SystemJS. (The webpack org (sokra, etc.) would probably do the same. The problem is that we have a statically created scope that makes it impossible to not only optimize, but to know what will actually be available (from an external module). I know there was at one time an experimental SystemJS webpack plugin, however I am not sure how well maintained it is at the moment.
Currently @ngconf, but couldn't ask this question due to the large crowd. I heard you answer a similar question, and you mentioned that for a number of reasons (including security) there are no real plans for webpack to support dynamic importing of external modules. In our scenario, we need two separate projects that will get recompiled for production at two different cadences independently.
Is it possible to "trick" webpack in anyway by adding an empty module of the same name at a certain external url at compile time, and then at runtime populating said module with more things (like an ngfactory)? Or would you recommend just going a completely different route like systemJS at that point?
The text was updated successfully, but these errors were encountered: