From 964dfbaf1ab018d26d4acc574bd4fce5272bf890 Mon Sep 17 00:00:00 2001 From: AsPulse <84216737+AsPulse@users.noreply.github.com> Date: Mon, 6 Feb 2023 04:48:15 +0900 Subject: [PATCH] fix(bindings): Don't require unnecessary package (#6902) --- node-swc/src/binding.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/node-swc/src/binding.js b/node-swc/src/binding.js index 6f1672839ef..ea14db72eb5 100644 --- a/node-swc/src/binding.js +++ b/node-swc/src/binding.js @@ -102,15 +102,6 @@ switch (platform) { } break case 'darwin': - localFileExisted = existsSync(join(__dirname, 'swc.darwin-universal.node')) - try { - if (localFileExisted) { - nativeBinding = require('./swc.darwin-universal.node') - } else { - nativeBinding = require('@swc/core-darwin-universal') - } - break - } catch {} switch (arch) { case 'x64': localFileExisted = existsSync(join(__dirname, 'swc.darwin-x64.node'))