Conversation
|
Hey, @fredden, thanks for working on this. Maybe instead of creating a new context and undefining all of the modules we could use page.evaluateOnNewDocument to inject a script that hooks into onResourceLoad which already gets a list of module dependencies as it loads? I'm not sure if it is a right way but should result in cleaner code when successful. |
|
I spent a long while working with When using Using a new RequireJS context was necessary because some mix-ins were giving me issues, and I was also having trouble with some of the Magento code that wanted to read the DOM to find We could move some of the looping into the browser context to tidy this up a little. I wasn't able to pass a -- Looking at the code again just now, I think it should be possible to combine the last two loops into one ( |
005834b to
ab6c3e1
Compare
|
@krzksz, is there anything else you'd like to discuss / have changed in this pull request? |
|
@krzksz can we get this merged in, please? |
|
@krzksz ? |
|
Hey @fredden Are you using this change currently? Would you consider it stable / worth patching in? Thanks |
|
@convenient we're using magepack less and less these days. We've been waiting for this change so that our code reviews can be more smooth, but haven't applied it / used a fork for magepack yet. As far as I know, this is stable / ready to merge in / works as advertised. |
|
Thanks @fredden that's much appreciated. Do you have an alternative to magepack you're using or is it all alternative frontends? |
|
Hyvä theme is our current go-to for new Magento builds. This removes RequireJS from the front-end completely, so magepack and similar are no longer required. |
|
I expected that to be the answer just wanted to confirm 🙂 thanks |
Fixes #23