mirror of
https://git.unlock-music.dev/um/web.git
synced 2025-07-06 22:42:10 +08:00
build: support node v22
This commit is contained in:
13
patches/terser-webpack-plugin+1.4.5.patch
Normal file
13
patches/terser-webpack-plugin+1.4.5.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/node_modules/terser-webpack-plugin/dist/index.js b/node_modules/terser-webpack-plugin/dist/index.js
|
||||
index 6268f6b..1cb8f2c 100644
|
||||
--- a/node_modules/terser-webpack-plugin/dist/index.js
|
||||
+++ b/node_modules/terser-webpack-plugin/dist/index.js
|
||||
@@ -214,7 +214,7 @@ class TerserPlugin {
|
||||
// eslint-disable-next-line global-require
|
||||
'terser-webpack-plugin': require('../package.json').version,
|
||||
'terser-webpack-plugin-options': this.options,
|
||||
- hash: _crypto.default.createHash('md4').update(input).digest('hex')
|
||||
+ hash: _crypto.default.createHash('sha256').update(input).digest('hex')
|
||||
};
|
||||
task.cacheKeys = this.options.cacheKeys(defaultCacheKeys, file);
|
||||
}
|
Reference in New Issue
Block a user