Executing both plugins leads the Live-Programming plugin to not use the rewritten value, but its original un-proxied reference.
Also notice the undefined module name resulting from evaluating the script inside a workspace. I did not yet checked for similar behavior inside a named js-module.
Possible Solutions
Rewriting both aspects in one go might remove this issue.
If not, the Live-Programming plugin should be applied only after the Var-Recorder.
Error
Printing the following code in a Workspace results in unexpected behavior:
The above code, executed in one go, evaluates to
[1, 2, 3]
. However it should evaluate to an empty array.Executing the code line-by-line results in the expected bahavior.
Possible Explanation
The issue may result from the interaction of two babel plugins, the Var-Recorder and the Live-Programming plugin, inside a workspace.
Executing both plugins leads the Live-Programming plugin to not use the rewritten value, but its original un-proxied reference.
Also notice the
undefined
module name resulting from evaluating the script inside a workspace. I did not yet checked for similar behavior inside a named js-module.Possible Solutions
Rewriting both aspects in one go might remove this issue. If not, the Live-Programming plugin should be applied only after the Var-Recorder.
Similar Issues
257