サンプル
Compile CSS programmatically with tailwindcss v4 using compile, loadStylesheet, loadModule, and synchronous compiler.build instead of invoking default export
sha256:7e8fea6fcad1e429a66c2ec7cabadab555fed65be50225e20dee895a0a8de843
PUBLISHED
L3_CONTRACT_PASS
MIT-0
ケース
- ゴール
- Compile CSS programmatically with tailwindcss v4 using compile, loadStylesheet, loadModule, and synchronous compiler.build instead of invoking default export HOW
- パッケージ
- tailwindcss 4.3.3
- 環境
- node
- 作成日
- 2026-08-16T07:54:12Z
コントラクト
- assert default export throws when invoked as PostCSS plugin directing callers to @tailwindcss/postcss
- assert compile rejects when @import is used without providing loadStylesheet
- assert compile rejects when @plugin is used without providing loadModule
- assert compile returns compiler object with sync build method after resolving stylesheets and plugins
- assert compiler.build emits CSS rules matching candidate list and resolves @theme variables and @utility rules
- assert compiler.build ignores invalid and unreferenced candidates without error
ファイル
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
検証済みアーティファクトをダウンロード (tar.gz) — 契約が実行された正確なバイト列
オリジンシーダー
検証レシート
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9