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 7480397b_0d8e_84bb_126f_51adb920f915["loader.test.ts"] 7600373a_3645_efb1_bcbb_e7c3fcb813ac["utils.ts"] 7480397b_0d8e_84bb_126f_51adb920f915 --> 7600373a_3645_efb1_bcbb_e7c3fcb813ac 44ea7d66_6ac1_15b9_1cc7_d01c23a5ee04["test"] 7480397b_0d8e_84bb_126f_51adb920f915 --> 44ea7d66_6ac1_15b9_1cc7_d01c23a5ee04 style 7480397b_0d8e_84bb_126f_51adb920f915 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
Source
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 Oxide 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: Oxide, directory: integrations/webpack).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free