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

loader.test.ts — tailwindcss Source File

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

Entity Profile

Dependency Diagram

graph LR
  9b26f4dc_0803_5b8c_dd2c_1665fcf705fe["loader.test.ts"]
  9ffd1dda_9675_c514_373d_0f4ab4648249["utils.ts"]
  9b26f4dc_0803_5b8c_dd2c_1665fcf705fe --> 9ffd1dda_9675_c514_373d_0f4ab4648249
  f11e3be9_51f8_140b_68b0_f58ddd082595["test"]
  9b26f4dc_0803_5b8c_dd2c_1665fcf705fe --> f11e3be9_51f8_140b_68b0_f58ddd082595
  style 9b26f4dc_0803_5b8c_dd2c_1665fcf705fe fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

test(
  '@tailwindcss/webpack loader (build)',
  {
    fs: {
      'package.json': json`
        {
          "main": "./src/index.js",
          "browser": "./src/index.js",
          "dependencies": {
            "css-loader": "^6",
            "webpack": "^5",
            "webpack-cli": "^5",
            "mini-css-extract-plugin": "^2",
            "tailwindcss": "workspace:^",
            "@tailwindcss/webpack": "workspace:^"
          }
        }
      `,
      'webpack.config.js': js`
        let MiniCssExtractPlugin = require('mini-css-extract-plugin')

        module.exports = {
          output: {
            clean: true,
          },
          plugins: [new MiniCssExtractPlugin()],
          module: {
            rules: [
              {
                test: /.css$/i,
                use: [MiniCssExtractPlugin.loader, 'css-loader', '@tailwindcss/webpack'],
              },
            ],
          },
        }
      `,
      'src/index.js': js`import './index.css'`,
      'src/index.html': html`
        <div class="flex"></div>
      `,
      'src/index.css': css`
        @import 'tailwindcss/theme';
        @import 'tailwindcss/utilities';
      `,
    },
  },
  async ({ fs, exec, expect }) => {
    await exec('pnpm webpack --mode=development')

    expect(await fs.dumpFiles('./dist/*.css')).toMatchInlineSnapshot(`
      "
      --- ./dist/main.css ---
      .flex {
        display: flex;
      }
      "
    `)
  },
// ... (361 more lines)

Domain

Dependencies

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free