Home / Function/ process() — tailwindcss Function Reference

process() — tailwindcss Function Reference

Architecture documentation for the process() function in vue.rs from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  6249ef5f_182b_a66d_1387_a9f36d181d39["process()"]
  152046dd_6f96_e534_3585_b734e23a47ff["vue.rs"]
  6249ef5f_182b_a66d_1387_a9f36d181d39 -->|defined in| 152046dd_6f96_e534_3585_b734e23a47ff
  style 6249ef5f_182b_a66d_1387_a9f36d181d39 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/oxide/src/extractor/pre_processors/vue.rs lines 15–28

    fn process(&self, content: &[u8]) -> Vec<u8> {
        let mut result = content.to_vec();

        let content_as_str = std::str::from_utf8(content).unwrap();
        for (_, [lang, body]) in TEMPLATE_REGEX
            .captures_iter(content_as_str)
            .map(|c| c.extract())
        {
            let replaced = pre_process_input(body.as_bytes(), lang);
            result = result.replace(body, replaced);
        }

        result
    }

Domain

Subdomains

Frequently Asked Questions

What does process() do?
process() is a function in the tailwindcss codebase, defined in crates/oxide/src/extractor/pre_processors/vue.rs.
Where is process() defined?
process() is defined in crates/oxide/src/extractor/pre_processors/vue.rs at line 15.

Analyze Your Own Codebase

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

Try Supermodel Free