mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 22:56:11 +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
|
break
|
||||||
case 'darwin':
|
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) {
|
switch (arch) {
|
||||||
case 'x64':
|
case 'x64':
|
||||||
localFileExisted = existsSync(join(__dirname, 'swc.darwin-x64.node'))
|
localFileExisted = existsSync(join(__dirname, 'swc.darwin-x64.node'))
|
||||||
|
Loading…
Reference in New Issue
Block a user