From fc87c009806dcc98867f6b58efe29b042aa01dee Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Mon, 18 May 2026 23:10:59 +0800 Subject: node: update --- .../lib/index.js | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 node_modules/babel-plugin-transform-minify-booleans/lib/index.js (limited to 'node_modules/babel-plugin-transform-minify-booleans/lib') diff --git a/node_modules/babel-plugin-transform-minify-booleans/lib/index.js b/node_modules/babel-plugin-transform-minify-booleans/lib/index.js deleted file mode 100644 index 50f96b5f..00000000 --- a/node_modules/babel-plugin-transform-minify-booleans/lib/index.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; - -module.exports = function ({ - types: t -}) { - const TRUE = t.unaryExpression("!", t.numericLiteral(0), true); - const FALSE = t.unaryExpression("!", t.numericLiteral(1), true); - return { - name: "transform-minify-booleans", - visitor: { - // shorten booleans to a negation - // true -> !0 - // false -> !1 - BooleanLiteral(path) { - path.replaceWith(path.node.value ? TRUE : FALSE); - } - - } - }; -}; \ No newline at end of file -- cgit v1.2.3