hasharray / revaluate.js

non destructive code revaluation
https://revaluate.js.org
2 stars 0 forks source link

Three way merges #21

Closed caspervonb closed 7 years ago

caspervonb commented 7 years ago

Classes and top level object expressions currently do a merge between current state and new source.

Preferable would be to merge between the old source and the new source onto the current state, only applying changes if the old value != new value. This way, any patching that happens later in the pipeline is untouched but the explicit intention to change something will take effect.

caspervonb commented 7 years ago

Added in https://github.com/hasharray/revaluate.js/commit/b636980868337ba60b2cc94fe3a8477992ebdec4