core: patch: support multi file patch

This commit is contained in:
undefined committed 2026-01-06 16:58:16 +08:00
1 parent 4fc7b815b7
commit 24f5076ddc
2 files changed
+84 -30

No files matched your search

+1 -1
View File
@@ -5,7 +5,7 @@ const packageBasedir = require('path').resolve(__dirname, '..');
const { homedir } = require('os');
const { default: hook } = require('@undefined-moe/require-resolve-hook');
const { bypass } = hook(/^(hydrooj|@hydrooj|cordis|lodash|js-yaml)($|\/)/, (id) => {
if (id.startsWith('hydrooj/src')) {
if (id.startsWith('hydrooj/src') && !('__DISABLE_HYDRO_DEPRECATION_WARNING__' in global)) {
if (process.env.DEV) {
const error = new Error(`module require via ${id} is deprecated.`);
const filter = [