Home / Function/ testSourceInput() — vite Function Reference

testSourceInput() — vite Function Reference

Architecture documentation for the testSourceInput() function in postcss.config.js from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  4e5ec053_e035_4a22_4408_df981d9c23f2["testSourceInput()"]
  6432e4e3_1309_4b33_9744_036f5048ffb8["postcss.config.js"]
  4e5ec053_e035_4a22_4408_df981d9c23f2 -->|defined in| 6432e4e3_1309_4b33_9744_036f5048ffb8
  style 4e5ec053_e035_4a22_4408_df981d9c23f2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

playground/css/postcss.config.js lines 48–62

function testSourceInput() {
  return {
    postcssPlugin: 'source-input',
    AtRule(atRule) {
      if (atRule.name === 'source-input') {
        atRule.after(
          `.source-input::before { content: ${JSON.stringify(
            atRule.source.input.from,
          )}; }`,
        )
        atRule.remove()
      }
    },
  }
}

Domain

Subdomains

Frequently Asked Questions

What does testSourceInput() do?
testSourceInput() is a function in the vite codebase, defined in playground/css/postcss.config.js.
Where is testSourceInput() defined?
testSourceInput() is defined in playground/css/postcss.config.js at line 48.

Analyze Your Own Codebase

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

Try Supermodel Free