From 1fbfd77c3ed3806a4bbfab46644074b1fe364214 Mon Sep 17 00:00:00 2001 From: Frank Lemanschik Date: Sun, 15 Dec 2019 09:00:30 +0100 Subject: [PATCH] Update log.js Lets save some code space and don't import anything that will not get used treeshaking is not perfect --- log.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/log.js b/log.js index fe134ee..35708e6 100644 --- a/log.js +++ b/log.js @@ -1,4 +1,5 @@ "use strict"; +//!steal-remove-start var dev = require("can-log/dev/dev"); var canReflect = require("can-reflect"); @@ -13,6 +14,7 @@ function quoteString(x) { // `Observable.propotype.log = log` // b.- Make sure `._log` is called by the observable when mutation happens // `_.log` should be passed the current value and the value before the mutation +//!steal-remove-end module.exports = function log() { //!steal-remove-start if (process.env.NODE_ENV !== 'production') {