@swc/core 1.9.2 → 1.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/binding.js +63 -67
- package/package.json +12 -12
package/binding.js
CHANGED
|
@@ -127,15 +127,15 @@ function requireNative() {
|
|
|
127
127
|
}
|
|
128
128
|
} else if (process.platform === 'darwin') {
|
|
129
129
|
try {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
130
|
+
return require('./swc.darwin-universal.node')
|
|
131
|
+
} catch (e) {
|
|
132
|
+
loadErrors.push(e)
|
|
133
|
+
}
|
|
134
|
+
try {
|
|
135
|
+
return require('@swc/core-darwin-universal')
|
|
136
|
+
} catch (e) {
|
|
137
|
+
loadErrors.push(e)
|
|
138
|
+
}
|
|
139
139
|
|
|
140
140
|
if (process.arch === 'x64') {
|
|
141
141
|
try {
|
|
@@ -196,53 +196,53 @@ function requireNative() {
|
|
|
196
196
|
if (process.arch === 'x64') {
|
|
197
197
|
if (isMusl()) {
|
|
198
198
|
try {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
199
|
+
return require('./swc.linux-x64-musl.node')
|
|
200
|
+
} catch (e) {
|
|
201
|
+
loadErrors.push(e)
|
|
202
|
+
}
|
|
203
|
+
try {
|
|
204
|
+
return require('@swc/core-linux-x64-musl')
|
|
205
|
+
} catch (e) {
|
|
206
|
+
loadErrors.push(e)
|
|
207
|
+
}
|
|
208
208
|
|
|
209
209
|
} else {
|
|
210
210
|
try {
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
211
|
+
return require('./swc.linux-x64-gnu.node')
|
|
212
|
+
} catch (e) {
|
|
213
|
+
loadErrors.push(e)
|
|
214
|
+
}
|
|
215
|
+
try {
|
|
216
|
+
return require('@swc/core-linux-x64-gnu')
|
|
217
|
+
} catch (e) {
|
|
218
|
+
loadErrors.push(e)
|
|
219
|
+
}
|
|
220
220
|
|
|
221
221
|
}
|
|
222
222
|
} else if (process.arch === 'arm64') {
|
|
223
223
|
if (isMusl()) {
|
|
224
224
|
try {
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
225
|
+
return require('./swc.linux-arm64-musl.node')
|
|
226
|
+
} catch (e) {
|
|
227
|
+
loadErrors.push(e)
|
|
228
|
+
}
|
|
229
|
+
try {
|
|
230
|
+
return require('@swc/core-linux-arm64-musl')
|
|
231
|
+
} catch (e) {
|
|
232
|
+
loadErrors.push(e)
|
|
233
|
+
}
|
|
234
234
|
|
|
235
235
|
} else {
|
|
236
236
|
try {
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
237
|
+
return require('./swc.linux-arm64-gnu.node')
|
|
238
|
+
} catch (e) {
|
|
239
|
+
loadErrors.push(e)
|
|
240
|
+
}
|
|
241
|
+
try {
|
|
242
|
+
return require('@swc/core-linux-arm64-gnu')
|
|
243
|
+
} catch (e) {
|
|
244
|
+
loadErrors.push(e)
|
|
245
|
+
}
|
|
246
246
|
|
|
247
247
|
}
|
|
248
248
|
} else if (process.arch === 'arm') {
|
|
@@ -256,32 +256,29 @@ function requireNative() {
|
|
|
256
256
|
} catch (e) {
|
|
257
257
|
loadErrors.push(e)
|
|
258
258
|
}
|
|
259
|
-
|
|
260
259
|
} else if (process.arch === 'riscv64') {
|
|
261
260
|
if (isMusl()) {
|
|
262
261
|
try {
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
262
|
+
return require('./swc.linux-riscv64-musl.node')
|
|
263
|
+
} catch (e) {
|
|
264
|
+
loadErrors.push(e)
|
|
265
|
+
}
|
|
266
|
+
try {
|
|
267
|
+
return require('@swc/core-linux-riscv64-musl')
|
|
268
|
+
} catch (e) {
|
|
269
|
+
loadErrors.push(e)
|
|
270
|
+
}
|
|
273
271
|
} else {
|
|
274
272
|
try {
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
273
|
+
return require('./swc.linux-riscv64-gnu.node')
|
|
274
|
+
} catch (e) {
|
|
275
|
+
loadErrors.push(e)
|
|
276
|
+
}
|
|
277
|
+
try {
|
|
278
|
+
return require('@swc/core-linux-riscv64-gnu')
|
|
279
|
+
} catch (e) {
|
|
280
|
+
loadErrors.push(e)
|
|
281
|
+
}
|
|
285
282
|
}
|
|
286
283
|
} else if (process.arch === 's390x') {
|
|
287
284
|
try {
|
|
@@ -294,7 +291,6 @@ function requireNative() {
|
|
|
294
291
|
} catch (e) {
|
|
295
292
|
loadErrors.push(e)
|
|
296
293
|
}
|
|
297
|
-
|
|
298
294
|
} else {
|
|
299
295
|
loadErrors.push(new Error(`Unsupported architecture on Linux: ${process.arch}`))
|
|
300
296
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc/core",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.3",
|
|
4
4
|
"description": "Super-fast alternative for babel",
|
|
5
5
|
"homepage": "https://swc.rs",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
],
|
|
92
92
|
"dependencies": {
|
|
93
93
|
"@swc/counter": "^0.1.3",
|
|
94
|
-
"@swc/types": "^0.1.
|
|
94
|
+
"@swc/types": "^0.1.17"
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|
|
97
97
|
"@napi-rs/cli": "^3.0.0-alpha.43",
|
|
@@ -100,15 +100,15 @@
|
|
|
100
100
|
"typescript": "^5.3.3"
|
|
101
101
|
},
|
|
102
102
|
"optionalDependencies": {
|
|
103
|
-
"@swc/core-darwin-x64": "1.9.
|
|
104
|
-
"@swc/core-win32-x64-msvc": "1.9.
|
|
105
|
-
"@swc/core-linux-x64-gnu": "1.9.
|
|
106
|
-
"@swc/core-linux-x64-musl": "1.9.
|
|
107
|
-
"@swc/core-win32-ia32-msvc": "1.9.
|
|
108
|
-
"@swc/core-linux-arm-gnueabihf": "1.9.
|
|
109
|
-
"@swc/core-darwin-arm64": "1.9.
|
|
110
|
-
"@swc/core-linux-arm64-gnu": "1.9.
|
|
111
|
-
"@swc/core-linux-arm64-musl": "1.9.
|
|
112
|
-
"@swc/core-win32-arm64-msvc": "1.9.
|
|
103
|
+
"@swc/core-darwin-x64": "1.9.3",
|
|
104
|
+
"@swc/core-win32-x64-msvc": "1.9.3",
|
|
105
|
+
"@swc/core-linux-x64-gnu": "1.9.3",
|
|
106
|
+
"@swc/core-linux-x64-musl": "1.9.3",
|
|
107
|
+
"@swc/core-win32-ia32-msvc": "1.9.3",
|
|
108
|
+
"@swc/core-linux-arm-gnueabihf": "1.9.3",
|
|
109
|
+
"@swc/core-darwin-arm64": "1.9.3",
|
|
110
|
+
"@swc/core-linux-arm64-gnu": "1.9.3",
|
|
111
|
+
"@swc/core-linux-arm64-musl": "1.9.3",
|
|
112
|
+
"@swc/core-win32-arm64-msvc": "1.9.3"
|
|
113
113
|
}
|
|
114
114
|
}
|