tsdown.config.ts — vite Source File
Architecture documentation for tsdown.config.ts, a typescript file in the vite codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 5124f25d_d687_b4fb_be4e_70d55732b289["tsdown.config.ts"] 8c8944ff_c444_0ebb_8419_eb691db97f08["rollupLicensePlugin.ts"] 5124f25d_d687_b4fb_be4e_70d55732b289 --> 8c8944ff_c444_0ebb_8419_eb691db97f08 74b9093c_e915_858a_5cf5_38f75501fe67["licensePlugin"] 5124f25d_d687_b4fb_be4e_70d55732b289 --> 74b9093c_e915_858a_5cf5_38f75501fe67 51e96894_3556_ed5c_1ede_97d449867adf["node:path"] 5124f25d_d687_b4fb_be4e_70d55732b289 --> 51e96894_3556_ed5c_1ede_97d449867adf 11967af7_aed5_9ab8_3736_f3beeda24bb2["tsdown"] 5124f25d_d687_b4fb_be4e_70d55732b289 --> 11967af7_aed5_9ab8_3736_f3beeda24bb2 style 5124f25d_d687_b4fb_be4e_70d55732b289 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import path from 'node:path'
import { defineConfig } from 'tsdown'
import licensePlugin from '../vite/rollupLicensePlugin.ts'
export default defineConfig(() => ({
entry: ['src/index.ts'],
target: 'node20',
minify: true,
inlineOnly: false as const,
fixedExtension: false,
plugins: [
licensePlugin(
path.resolve(import.meta.dirname, './LICENSE'),
'create-vite license',
'create-vite',
'# License of the files in the directories starting with "template-" in create-vite\n' +
'The files in the directories starting with "template-" in create-vite and files\n' +
'generated from those files are licensed under the CC0 1.0 Universal license:\n\n' +
cc0LicenseText +
'\n\n',
),
],
}))
const cc0LicenseText = `
CC0 1.0 Universal
Statement of Purpose
The laws of most jurisdictions throughout the world automatically confer
exclusive Copyright and Related Rights (defined below) upon the creator and
subsequent owner(s) (each and all, an "owner") of an original work of
authorship and/or a database (each, a "Work").
Certain owners wish to permanently relinquish those rights to a Work for the
purpose of contributing to a commons of creative, cultural and scientific
works ("Commons") that the public can reliably and without fear of later
claims of infringement build upon, modify, incorporate in other works, reuse
and redistribute as freely as possible in any form whatsoever and for any
purposes, including without limitation commercial purposes. These owners may
contribute to the Commons to promote the ideal of a free culture and the
further production of creative, cultural and scientific works, or to gain
reputation or greater distribution for their Work in part through the use and
efforts of others.
For these and/or other purposes and motivations, and without any expectation
of additional consideration or compensation, the person associating CC0 with a
Work (the "Affirmer"), to the extent that he or she is an owner of Copyright
and Related Rights in the Work, voluntarily elects to apply CC0 to the Work
and publicly distribute the Work under its terms, with knowledge of his or her
Copyright and Related Rights in the Work and the meaning and intended legal
effect of CC0 on those rights.
1. Copyright and Related Rights. A Work made available under CC0 may be
protected by copyright and related or neighboring rights ("Copyright and
Related Rights"). Copyright and Related Rights include, but are not limited
to, the following:
i. the right to reproduce, adapt, distribute, perform, display, communicate,
and translate a Work;
// ... (83 more lines)
Domain
Dependencies
- licensePlugin
- node:path
- rollupLicensePlugin.ts
- tsdown
Source
Frequently Asked Questions
What does tsdown.config.ts do?
tsdown.config.ts is a source file in the vite codebase, written in typescript. It belongs to the ProjectScaffolder domain.
What does tsdown.config.ts depend on?
tsdown.config.ts imports 4 module(s): licensePlugin, node:path, rollupLicensePlugin.ts, tsdown.
Where is tsdown.config.ts in the architecture?
tsdown.config.ts is located at packages/create-vite/tsdown.config.ts (domain: ProjectScaffolder, directory: packages/create-vite).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free