Closed IngwiePhoenix closed 8 years ago
Hi @IngwiePhoenix, I'm on my phone at the moment so I can't check but it looks like the problem is where you copy a reference to the .compile() method from the runtime (var compile = ...) - there's a few ways to fix but the easiest would be to instead store the runtime instance in a var and call it as runtime.compile(...) rather than compile(...). Eg 'var runtime = __webpack_require(1);' ... 'var makeCtx = runtime.compile(...);'
Yeah, that was indeed the issue... xD
And once you pointed it out, i facedesked.
Grabbing a reference to a function makes it lose its context. So either i would've used .apply/.call
or statically bind using .bind
... So I just decided to use your idea, and problem solved :) It works now.
Im waiting for @sokra to answer a few questions in webpack, and then i can code the remaining parts. ^.^
Thanks for the reply!
So, I basically have the prototype of my plugin done.
However, there is an issue I do not quite comprehend...
That maps to:
Which is
phpcore/src/Runtime.js
.Now, this is the code that bootstraps
phpruntime
:And this is the actual "executor":
Did I miss something, maybe? o.o