mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: patch: support multi file patch
This commit is contained in:
2 files changed
+84
-30
No files matched your search
@@ -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 = [
|
||||
|
||||
Reference in new issue
Block a user