We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent faf0685 commit ac1e87aCopy full SHA for ac1e87a
babel-preset/transforms/transform-remove-console.js
@@ -7,7 +7,7 @@ module.exports = function (babel) {
7
if (path.get("callee").matchesPattern("console", true)) {
8
path.node.callee = template(`
9
(function () {
10
- Array.prototype.slice.call(arguments).forEach(m => (typeof m === 'function') ? m() : m)
+ return undefined
11
})
12
`)().expression
13
}
0 commit comments