Home / File/ ssr.test.ts — tailwindcss Source File

ssr.test.ts — tailwindcss Source File

Architecture documentation for ssr.test.ts, a typescript file in the tailwindcss codebase. 3 imports, 0 dependents.

Entity Profile

Dependency Diagram

graph LR
  32e85229_bb60_0217_4dd6_66a6d4e8f768["ssr.test.ts"]
  9ffd1dda_9675_c514_373d_0f4ab4648249["utils.ts"]
  32e85229_bb60_0217_4dd6_66a6d4e8f768 --> 9ffd1dda_9675_c514_373d_0f4ab4648249
  b7531519_9055_fbfa_5f69_ebc8586b0422["candidate"]
  32e85229_bb60_0217_4dd6_66a6d4e8f768 --> b7531519_9055_fbfa_5f69_ebc8586b0422
  f11e3be9_51f8_140b_68b0_f58ddd082595["test"]
  32e85229_bb60_0217_4dd6_66a6d4e8f768 --> f11e3be9_51f8_140b_68b0_f58ddd082595
  style 32e85229_bb60_0217_4dd6_66a6d4e8f768 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

const WORKSPACE = {
  'index.html': html`
    <body>
      <div id="app"></div>
      <script type="module" src="./src/index.ts"></script>
    </body>
  `,
  'src/index.css': css`@import 'tailwindcss';`,
  'src/index.ts': ts`
    import './index.css'

    document.querySelector('#app').innerHTML = \`
      <div class="underline m-2">Hello, world!</div>
    \`
  `,
  'server.ts': ts`
    import css from './src/index.css?url'

    document.querySelector('#app').innerHTML = \`
      <link rel="stylesheet" href="\${css}">
      <div class="overline m-3">Hello, world!</div>
    \`
  `,
}

test(
  'Vite 5',
  {
    fs: {
      'package.json': json`
        {
          "type": "module",
          "dependencies": {
            "@tailwindcss/vite": "workspace:^",
            "tailwindcss": "workspace:^"
          },
          "_comment": "This test uses Vite 5.3 on purpose. Do not upgrade it to Vite 6.",
          "devDependencies": {
            "vite": "^5.3"
          }
        }
      `,
      'vite.config.ts': ts`
        import tailwindcss from '@tailwindcss/vite'
        import { defineConfig } from 'vite'

        export default defineConfig({
          build: {
            cssMinify: false,
            ssrEmitAssets: true,
          },
          plugins: [tailwindcss()],
        })
      `,
      ...WORKSPACE,
    },
  },
  async ({ fs, exec, expect }) => {
// ... (109 more lines)

Domain

Dependencies

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free