From 6d88a5c31c4b0fb1532b64e157295ca20773cb68 Mon Sep 17 00:00:00 2001 From: Brad Cornes Date: Fri, 10 Sep 2021 12:12:24 +0100 Subject: [PATCH] [server] Fix crash on M1 macs --- packages/tailwindcss-language-server/src/watcher/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/tailwindcss-language-server/src/watcher/index.js b/packages/tailwindcss-language-server/src/watcher/index.js index cfb84fc..c39a576 100644 --- a/packages/tailwindcss-language-server/src/watcher/index.js +++ b/packages/tailwindcss-language-server/src/watcher/index.js @@ -70,6 +70,7 @@ exports.unsubscribe = (dir, fn, opts) => { function resolve() { // Find most specific flavor first var list = prebuilds[platform + '-' + arch] + if (!list) return var builds = Object.keys(list) var parsed = builds.map(parseTags) var candidates = parsed.filter(matchTags(runtime, abi))