mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 14:43:33 +03:00
fix(bindings): Don't require unnecessary package (#6902)
This commit is contained in:
parent
c223113338
commit
964dfbaf1a
@ -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'))
|
||||
|
Loading…
Reference in New Issue
Block a user