You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/@tailwindcss-standalone/package.json
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -32,13 +32,13 @@
32
32
},
33
33
"__notes": "These binary packages must be included so Bun can build the CLI for all supported platforms. We also rely on Lightning CSS and Parcel being patched so Bun can statically analyze the executables.",
Copy file name to clipboardExpand all lines: patches/@[email protected]
+18-12Lines changed: 18 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,10 @@
1
1
diff --git a/index.js b/index.js
2
-
index 8afb2b1126dcc687b7ff9b631589da252c1f9c22..97975cf342ff8c204b5731840a89b8ea88b0dbbc 100644
2
+
index 8afb2b1126dcc687b7ff9b631589da252c1f9c22..f3b1158eb5612235388ff5f5347f6edcbf323090 100644
3
3
--- a/index.js
4
4
+++ b/index.js
5
-
@@ -1,40 +1,26 @@
6
-
const {createWrapper} = require('./wrapper');
5
+
@@ -1,41 +1,27 @@
6
+
-const {createWrapper} = require('./wrapper');
7
+
+const { createWrapper } = require('./wrapper')
7
8
8
9
-let name = `@parcel/watcher-${process.platform}-${process.arch}`;
9
10
-if (process.platform === 'linux') {
@@ -16,7 +17,7 @@ index 8afb2b1126dcc687b7ff9b631589da252c1f9c22..97975cf342ff8c204b5731840a89b8ea
16
17
-}
17
18
+function loadPackage() {
18
19
+ if (process.platform === 'linux') {
19
-
+ let { MUSL, GLIBC, family, familySync } = require("detect-libc");
20
+
+ let { MUSL, GLIBC, family, familySync } = require('detect-libc')
20
21
+ // Bun polyfills `detect-libc` in compiled binaries. We rely on
21
22
+ // [email protected] but the polyfilled version is 2.x. In detect-libc@2x
22
23
+ // there is a `familySync` function that we can use instead.
@@ -37,14 +38,14 @@ index 8afb2b1126dcc687b7ff9b631589da252c1f9c22..97975cf342ff8c204b5731840a89b8ea
37
38
- handleError(err);
38
39
- throw new Error(`No prebuild or local build of @parcel/watcher found. Tried ${name}. Please ensure it is installed (don't use --no-optional when installing with npm). Otherwise it is possible we don't support your platform yet. If this is the case, please report an issue to https://github.com/parcel-bundler/watcher.`);
0 commit comments