Home / File/ trim.ts — vue Source File

trim.ts — vue Source File

Architecture documentation for trim.ts, a typescript file in the vue codebase. 1 imports, 1 dependents.

File typescript CompilerSFC ScriptAnalyzer 1 imports 1 dependents 1 functions

Entity Profile

Dependency Diagram

graph LR
  729601ff_0b63_2dea_6a2e_49e6f36c2012["trim.ts"]
  9f3f8004_6300_56b9_1cab_b3f6b495be1c["postcss"]
  729601ff_0b63_2dea_6a2e_49e6f36c2012 --> 9f3f8004_6300_56b9_1cab_b3f6b495be1c
  028e31ce_07f6_d5b2_134a_c0b5bb64823a["compileStyle.ts"]
  028e31ce_07f6_d5b2_134a_c0b5bb64823a --> 729601ff_0b63_2dea_6a2e_49e6f36c2012
  style 729601ff_0b63_2dea_6a2e_49e6f36c2012 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { PluginCreator } from 'postcss'

const trimPlugin: PluginCreator<{}> = () => {
  return {
    postcssPlugin: 'vue-sfc-trim',
    Once(root) {
      root.walk(({ type, raws }) => {
        if (type === 'rule' || type === 'atrule') {
          if (raws.before) raws.before = '\n'
          if ('after' in raws && raws.after) raws.after = '\n'
        }
      })
    }
  }
}

trimPlugin.postcss = true
export default trimPlugin

Domain

Subdomains

Functions

Dependencies

  • postcss

Frequently Asked Questions

What does trim.ts do?
trim.ts is a source file in the vue codebase, written in typescript. It belongs to the CompilerSFC domain, ScriptAnalyzer subdomain.
What functions are defined in trim.ts?
trim.ts defines 1 function(s): trimPlugin.
What does trim.ts depend on?
trim.ts imports 1 module(s): postcss.
What files import trim.ts?
trim.ts is imported by 1 file(s): compileStyle.ts.
Where is trim.ts in the architecture?
trim.ts is located at packages/compiler-sfc/src/stylePlugins/trim.ts (domain: CompilerSFC, subdomain: ScriptAnalyzer, directory: packages/compiler-sfc/src/stylePlugins).

Analyze Your Own Codebase

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

Try Supermodel Free