Home / File/ foo-with-sourcemap-plugin.ts — vite Source File

foo-with-sourcemap-plugin.ts — vite Source File

Architecture documentation for foo-with-sourcemap-plugin.ts, a typescript file in the vite codebase. 1 imports, 2 dependents.

File typescript ViteCore ConfigEngine 1 imports 2 dependents 1 functions

Entity Profile

Dependency Diagram

graph LR
  fa6ef7e9_30f9_8e01_a71f_c84fe1d37fab["foo-with-sourcemap-plugin.ts"]
  54c37fea_4fe7_2693_71cb_1276b77f55f9["vite"]
  fa6ef7e9_30f9_8e01_a71f_c84fe1d37fab --> 54c37fea_4fe7_2693_71cb_1276b77f55f9
  17ec97fb_0e5f_a169_a810_444052192dbc["js-sourcemap.spec.ts"]
  17ec97fb_0e5f_a169_a810_444052192dbc --> fa6ef7e9_30f9_8e01_a71f_c84fe1d37fab
  446f618c_4534_006f_d231_e5da67c68c53["vite.config.js"]
  446f618c_4534_006f_d231_e5da67c68c53 --> fa6ef7e9_30f9_8e01_a71f_c84fe1d37fab
  style fa6ef7e9_30f9_8e01_a71f_c84fe1d37fab fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import type { Plugin } from 'vite'

export const commentSourceMap = [
  '// default boundary sourcemap with magic-string',
  '//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsS0FBSyxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUMsQ0FBQyxHQUFHIn0=',
].join('\n')

export default function transformFooWithInlineSourceMap(): Plugin {
  return {
    name: 'transform-foo-with-inline-sourcemap',
    transform(code, id) {
      if (id.includes('foo-with-sourcemap.js')) {
        return `${code}${commentSourceMap}`
      }
    },
  }
}

Domain

Subdomains

Dependencies

  • vite

Frequently Asked Questions

What does foo-with-sourcemap-plugin.ts do?
foo-with-sourcemap-plugin.ts is a source file in the vite codebase, written in typescript. It belongs to the ViteCore domain, ConfigEngine subdomain.
What functions are defined in foo-with-sourcemap-plugin.ts?
foo-with-sourcemap-plugin.ts defines 1 function(s): transformFooWithInlineSourceMap.
What does foo-with-sourcemap-plugin.ts depend on?
foo-with-sourcemap-plugin.ts imports 1 module(s): vite.
What files import foo-with-sourcemap-plugin.ts?
foo-with-sourcemap-plugin.ts is imported by 2 file(s): js-sourcemap.spec.ts, vite.config.js.
Where is foo-with-sourcemap-plugin.ts in the architecture?
foo-with-sourcemap-plugin.ts is located at playground/js-sourcemap/foo-with-sourcemap-plugin.ts (domain: ViteCore, subdomain: ConfigEngine, directory: playground/js-sourcemap).

Analyze Your Own Codebase

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

Try Supermodel Free