fix: set CBOR_NATIVE_ACCELERATION_DISABLED to true

Signed-off-by: Innei <i@innei.in>
This commit is contained in:
Innei
2024-01-29 21:02:46 +08:00
parent cfaa4bd5a8
commit e1163cdac0

View File

@@ -58,7 +58,7 @@ function registerGlobal() {
function nodeEnvInjection() {
// # https://github.com/kriszyp/cbor-x/blob/master/node-index.js#L16 https://github.com/kriszyp/cbor-x/blob/master/node-index.js#L10
// # ncc not support runtime require so disable ACCELERATION
process.env['CBOR_NATIVE_ACCELERATION_DISABLED'] = '1'
process.env['CBOR_NATIVE_ACCELERATION_DISABLED'] = 'true'
}
export function register() {