From dcfddcbc2150c07f2dab5b6c43d9919eec005352 Mon Sep 17 00:00:00 2001 From: sadan4 <117494111+sadan4@users.noreply.github.com> Date: Tue, 10 Dec 2024 16:37:21 -0500 Subject: [PATCH] ConsoleJanitor: Add HLJS deprecations (#3062) --- src/plugins/consoleJanitor/index.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/plugins/consoleJanitor/index.ts b/src/plugins/consoleJanitor/index.ts index 2c29bf67..03c30ede 100644 --- a/src/plugins/consoleJanitor/index.ts +++ b/src/plugins/consoleJanitor/index.ts @@ -66,6 +66,13 @@ export default definePlugin({ }, patches: [ + { + find: "https://github.com/highlightjs/highlight.js/issues/2277", + replacement: { + match: /(?<=&&\()console.log\(`Deprecated.+?`\),/, + replace: "" + } + }, { find: 'react-spring: The "interpolate" function', replacement: {