Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
padmaia committed Dec 6, 2021
1 parent 646842b commit 78505dc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/next/build/swc/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,13 @@ function logLoadFailure(attempts) {
process.exit(1)
}

// eslint-disable-next-line
async function loadWasm() {
if (wasmBindings) {
return wasmBindings
}

let attempts = []
for (let pkg of ['@next/swc-wasm-web', '@next/swc-wasm-nodejs']) {
for (let pkg of ['@next/swc-wasm-nodejs', '@next/swc-wasm-web']) {
try {
let bindings = await import(pkg)
if (pkg === '@next/swc-wasm-web') {
Expand Down

0 comments on commit 78505dc

Please sign in to comment.