See #799 - speeds up serializing code.
authorJakub Pawlowicz <contact@jakubpawlowicz.com>
Sat, 14 Jan 2017 10:30:04 +0000 (11:30 +0100)
committerJakub Pawlowicz <contact@jakubpawlowicz.com>
Sat, 14 Jan 2017 10:31:56 +0000 (11:31 +0100)
commitbb1e8ffe1e1ba00801abee66da4a2a440fb8909c
tree32eb1fcf49a7315a6514da788bea2b32f2e35115
parentfcb55e7fbcb868a7dc5731383a6db386e1c8d0f8
See #799 - speeds up serializing code.

Why:

* Instead of using an `if` branch implements wrapping and tracking
  as a callback with `no-op` implementation when wrapping is disabled.
lib/writer/simple.js
lib/writer/source-maps.js