Home / File/ multi-root.test.ts — tailwindcss Source File

multi-root.test.ts — tailwindcss Source File

Architecture documentation for multi-root.test.ts, a typescript file in the tailwindcss codebase. 5 imports, 0 dependents.

File typescript Oxide 5 imports

Entity Profile

Dependency Diagram

graph LR
  495b6ebe_ddb9_6db5_5b38_f168ff09f240["multi-root.test.ts"]
  7600373a_3645_efb1_bcbb_e7c3fcb813ac["utils.ts"]
  495b6ebe_ddb9_6db5_5b38_f168ff09f240 --> 7600373a_3645_efb1_bcbb_e7c3fcb813ac
  ce18acb2_833c_61a7_166d_0fd7613ce1c0["candidate"]
  495b6ebe_ddb9_6db5_5b38_f168ff09f240 --> ce18acb2_833c_61a7_166d_0fd7613ce1c0
  522399f9_a5a8_fa94_794a_917ab0d0a66d["fetchStyles"]
  495b6ebe_ddb9_6db5_5b38_f168ff09f240 --> 522399f9_a5a8_fa94_794a_917ab0d0a66d
  22238dde_7df7_64d5_1424_a93cf2421b15["retryAssertion"]
  495b6ebe_ddb9_6db5_5b38_f168ff09f240 --> 22238dde_7df7_64d5_1424_a93cf2421b15
  44ea7d66_6ac1_15b9_1cc7_d01c23a5ee04["test"]
  495b6ebe_ddb9_6db5_5b38_f168ff09f240 --> 44ea7d66_6ac1_15b9_1cc7_d01c23a5ee04
  style 495b6ebe_ddb9_6db5_5b38_f168ff09f240 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { candidate, css, fetchStyles, html, json, retryAssertion, test, ts } from '../utils'

test(
  `production build`,
  {
    fs: {
      'package.json': json`
        {
          "type": "module",
          "dependencies": {
            "@tailwindcss/vite": "workspace:^",
            "tailwindcss": "workspace:^"
          },
          "devDependencies": {
            "vite": "^7"
          }
        }
      `,
      'vite.config.ts': ts`
        import tailwindcss from '@tailwindcss/vite'
        import path from 'node:path'
        import { defineConfig } from 'vite'

        export default defineConfig({
          build: {
            cssMinify: false,
            rollupOptions: {
              input: {
                root1: path.resolve(__dirname, 'root1.html'),
                root2: path.resolve(__dirname, 'root2.html'),
              },
            },
          },
          plugins: [tailwindcss()],
        })
      `,
      'root1.html': html`
        <head>
          <link rel="stylesheet" href="./src/root1.css" />
        </head>
        <body>
          <div class="one:underline two:underline">Hello, world!</div>
        </body>
      `,
      'src/shared.css': css`
        @reference 'tailwindcss/theme';
        @import 'tailwindcss/utilities';
      `,
      'src/root1.css': css`
        @import './shared.css';
        @custom-variant one (&:is([data-root='1']));
      `,
      'root2.html': html`
        <head>
          <link rel="stylesheet" href="./src/root2.css" />
        </head>
        <body>
          <div class="one:underline two:underline">Hello, world!</div>
        </body>
      `,
// ... (111 more lines)

Domain

Frequently Asked Questions

What does multi-root.test.ts do?
multi-root.test.ts is a source file in the tailwindcss codebase, written in typescript. It belongs to the Oxide domain.
What does multi-root.test.ts depend on?
multi-root.test.ts imports 5 module(s): candidate, fetchStyles, retryAssertion, test, utils.ts.
Where is multi-root.test.ts in the architecture?
multi-root.test.ts is located at integrations/vite/multi-root.test.ts (domain: Oxide, directory: integrations/vite).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free