Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make JS APIs available to plugins and configs in the Standalone CLI #15934

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

thecrypticace
Copy link
Contributor

@thecrypticace thecrypticace commented Jan 27, 2025

This PR ensures we bundle the relevant JS APIs in the Standalone CLI like tailwindcss, tailwindcss/plugin, tailwindcss/colors, etc…

Before, when loading plugins or configs, imports for those resources would fail.

Fixes #15235

@thecrypticace

This comment was marked as resolved.

@thecrypticace

This comment was marked as resolved.

@thecrypticace thecrypticace force-pushed the fix/v4-standalone-cli-js-apis branch from 3284714 to 45c9de9 Compare February 1, 2025 13:33
@thecrypticace
Copy link
Contributor Author

thecrypticace commented Feb 1, 2025

Looks like we're going to need another fix in Bun (or some other workaround).

Edit: Weirdly this works when building locally on Windows x64. Maybe something about the setup on GitHub Actions? Will have to keep testing.

Windows binary asset bundling appears to be broken (maybe a v1.2.x bug?)

Error: ENOENT: no such file or directory, open 'B:/~BUN/root/theme-j614ahvp.css'
21035 |     };
21036 |   };
21037 | });
21038 | 
21039 | // ../../node_modules/.pnpm/@[email protected]/node_modules/@parcel/watcher-win32-x64/watcher.node
21040 |   module.exports = __require("B:/~BUN/root/watcher-fqkqe3hc.node");

error: LoadLibrary failed: The specified module 
 code: "ERR_DLOPEN_FAILED"
      at <anonymous> (B:/~BUN/root/tailwindcss-windows-x64.exe:21040:29)
      at <anonymous> (B:/~BUN/root/tailwindcss-windows-x64.exe:18:47)
      at <anonymous> (B:/~BUN/root/tailwindcss-windows-x64.exe:21052:42)
      at <anonymous> (B:/~BUN/root/tailwindcss-windows-x64.exe:18:47)
      at <anonymous> (B:/~BUN/root/tailwindcss-windows-x64.exe:62069:44)
      at <anonymous> (B:/~BUN/root/tailwindcss-windows-x64.exe:28:48)
      at <anonymous> (B:/~BUN/root/tailwindcss-windows-x64.exe:62154:13)
      at <anonymous> (B:/~BUN/root/tailwindcss-windows-x64.exe:28:48)
      at <anonymous> (B:/~BUN/root/tailwindcss-windows-x64.exe:62276:46)

Bun v1.2.2 (Windows x64 baseline)

@stefanchrobot
Copy link

Related issue: #15235

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[v4] Standalone cli doesn't bundle tailwindcss js library
2 participants