MCPcopy Create free account

hub / github.com/rolldown/tsdown / functions

Functions308 in github.com/rolldown/tsdown

↓ 15 callersFunctionslash
(string: string)
src/utils/general.ts:33
↓ 14 callersFunctiontoArray
( val: T | T[] | null | undefined, defaultValue?: T, )
src/utils/general.ts:3
↓ 9 callersFunctiontestBuild
({ context, files, fixture, options, cwd, expectDir = '.', expectPattern, beforeBuild, snaps
tests/utils.ts:117
↓ 7 callersFunctionwriteFixtures
( { task }: TestContext, files?: Record<string, string>, fixtureName?: string, )
tests/utils.ts:33
↓ 6 callersFunctionformat
(msgs: any[])
src/utils/logger.ts:38
↓ 6 callersFunctionfsRemove
(path: string)
src/utils/fs.ts:16
↓ 6 callersFunctiontypeAssert
( // eslint-disable-next-line unused-imports/no-unused-vars value: T, )
src/utils/general.ts:85
↓ 5 callersFunctiondefineConfig
(options: UserConfigExport)
src/config.ts:13
↓ 5 callersFunctionoutput
(type: LogType, msg: string)
src/utils/logger.ts:88
↓ 5 callersFunctionresolveComma
(arr: T[])
src/utils/general.ts:17
↓ 4 callersFunctioncreateLogger
( level: LogLevel = 'info', options: LoggerOptions = {}, )
src/utils/logger.ts:70
↓ 4 callersFunctionfsExists
(path: string)
src/utils/fs.ts:5
↓ 4 callersFunctionfsStat
(path: string)
src/utils/fs.ts:12
↓ 4 callersFunctionjoin
(pkgRoot: string, outDir: string, fileName: string)
src/features/pkg/exports.ts:628
↓ 4 callersFunctionmatchPattern
( id: string, patterns: (string | RegExp)[], )
src/utils/general.ts:39
↓ 4 callersFunctionparsePackageSpecifier
( id: string, )
src/features/deps.ts:450
↓ 4 callersFunctionresolveConfig
(inlineConfig: InlineConfig)
src/config/index.ts:20
↓ 4 callersFunctionstripExtname
(filePath: string)
src/utils/fs.ts:49
↓ 4 callersFunctiontransformWithLightningCSS
( code: string, filename: string, options: TransformCssOptions, )
packages/css/src/lightningcss.ts:45
↓ 3 callersFunctionaddOutDirToChunks
( chunks: Array<OutputChunk | OutputAsset>, outDir: string, )
src/utils/chunks.ts:13
↓ 3 callersFunctionasyncReplace
( input: string, re: RegExp, replacer: (match: RegExpExecArray) => Promise<string>, )
packages/css/src/preprocessors.ts:129
↓ 3 callersFunctionchdir
(dir: string)
tests/utils.ts:244
↓ 3 callersFunctioncompilePreprocessor
( lang: PreprocessorLang, code: string, filename: string, options?: PreprocessorOptions, )
packages/css/src/preprocessors.ts:53
↓ 3 callersFunctiondetectIndentation
(jsonText: string)
src/utils/json.ts:46
↓ 3 callersFunctiondisposeSassCompiler
()
packages/css/src/preprocessors.ts:389
↓ 3 callersFunctionesbuildTargetToLightningCSS
( target: string[], )
packages/css/src/lightningcss.ts:173
↓ 3 callersFunctionformatBytes
(bytes: number)
src/utils/format.ts:1
↓ 3 callersFunctiongetSource
( source: string, filename: string, additionalData: PreprocessorAdditionalData | undefined, sep: strin
packages/css/src/preprocessors.ts:246
↓ 3 callersFunctiongetTestDir
(testName: RunnerTask | string)
tests/utils.ts:26
↓ 3 callersFunctionisInCI
()
src/utils/ci.ts:3
↓ 3 callersFunctionlowestCommonAncestor
(...filepaths: string[])
src/utils/fs.ts:24
↓ 3 callersFunctionmergeConfig
( defaults: InlineConfig, ...overrides: InlineConfig[] )
src/config/options.ts:434
↓ 3 callersFunctionmergeUserOptions
( defaults: T, user: | T | undefined | null | ((options: T, ...args: A) => Awaitable<T | v
src/config/options.ts:445
↓ 3 callersFunctionparseNodeModulesPath
( id: string, )
src/features/deps.ts:462
↓ 3 callersFunctionprettyFormat
(format: InternalModuleFormat)
src/utils/logger.ts:165
↓ 3 callersFunctionresolve
(specifier: string, from: string)
packages/css/src/lightningcss.ts:125
↓ 3 callersFunctionresolveRegex
(str: T)
src/utils/general.ts:21
↓ 3 callersFunctiontoObjectEntry
( entry: TsdownInputOption, cwd: string, root?: string, )
src/features/entry.ts:43
↓ 2 callersFunctionDepsPlugin
( { pkg, deps: { alwaysBundle: jsAlwaysBundle, onlyBundle, onlyImport, skipN
src/features/deps.ts:198
↓ 2 callersFunctionbuild
( inlineConfig: InlineConfig = {}, )
src/build.ts:43
↓ 2 callersFunctioncreateParser
(loader: Parser)
src/config/file.ts:176
↓ 2 callersFunctioncreateSuppressWarnings
( suppressWarnings: LoggerOptions['suppressWarnings'], )
src/utils/logger.ts:52
↓ 2 callersFunctiondoUrlReplace
( rawUrl: string, matched: string, replacer: CssUrlReplacer, funcName: string = 'url', )
packages/css/src/preprocessors.ts:188
↓ 2 callersFunctionexpandBaselineTarget
(targets: string[])
src/features/target.ts:16
↓ 2 callersFunctionextractLightningCssModuleExports
( exports: CSSModuleExports, )
packages/css/src/modules.ts:59
↓ 2 callersFunctionflattenPlugins
( plugins: TsdownPluginOption, )
src/features/plugin.ts:72
↓ 2 callersFunctionfsCopy
(from: string, to: string)
src/utils/fs.ts:20
↓ 2 callersFunctionfsRemove
(_)
__snapshots__/tsnapi/internal.snapshot.js:7
↓ 2 callersFunctiongetArchiveExtension
(platform: ExePlatform)
packages/exe/src/platform.ts:51
↓ 2 callersFunctiongetExtractCommand
( archivePath: string, outDir: string, binaryInArchive: string, target: ExeTarget, hostPlatform: Nod
packages/exe/src/download.ts:238
↓ 2 callersFunctiongetFilename
()
esm-shims.js:5
↓ 2 callersFunctiongetNameLabel
(ansis: Ansis, name?: string)
src/utils/logger.ts:160
↓ 2 callersFunctiongetPackageType
(pkg: PackageJson | undefined)
src/utils/package.ts:27
↓ 2 callersFunctiongetPreprocessorLangFromId
( id: string, )
packages/css/src/preprocessors.ts:45
↓ 2 callersFunctiongetTestFilename
(task: RunnerTask)
tests/utils.ts:19
↓ 2 callersFunctiongetTypesPackageName
(id: string)
src/features/deps.ts:493
↓ 2 callersFunctionhasExportsTypes
(value: unknown)
src/features/pkg/exports.ts:496
↓ 2 callersFunctionloadConfigFile
( inlineConfig: InlineConfig, workspace?: string, rootConfig?: UserConfig, )
src/config/file.ts:66
↓ 2 callersFunctionloadSassCompiler
( sass: SassModule, )
packages/css/src/preprocessors.ts:377
↓ 2 callersFunctionmigrate
({ dirs, dryRun }: MigrateOptions)
packages/migrate/src/index.ts:14
↓ 2 callersFunctionmodulesToEsm
(modules: Record<string, string>)
packages/css/src/modules.ts:3
↓ 2 callersFunctionnormalizeFormat
(format: Format)
src/utils/package.ts:36
↓ 2 callersFunctionoutputDiff
(text: string)
packages/migrate/src/utils.ts:21
↓ 2 callersFunctionpkgExists
(moduleName: string)
src/utils/general.ts:52
↓ 2 callersFunctionpromiseWithResolvers
()
src/utils/general.ts:73
↓ 2 callersFunctionreadPackageJson
( dir: string, )
src/utils/package.ts:13
↓ 2 callersFunctionresolveConfigLoader
( configLoader: InlineConfig['configLoader'] = 'auto', )
src/config/file.ts:170
↓ 2 callersFunctionresolveCopyEntries
( options: ResolvedConfig, )
src/features/copy.ts:61
↓ 2 callersFunctionresolveCssOptions
( options: CssOptions = {}, topLevelTarget?: string[], unbundle?: boolean, )
packages/css/src/options.ts:212
↓ 2 callersFunctionresolveDepsConfig
( config: UserConfig, logger?: Logger, )
src/features/deps.ts:95
↓ 2 callersFunctionresolveFeatureOption
( value: Exclude<WithEnabled<T>, undefined>, defaults: T, )
src/config/options.ts:461
↓ 2 callersFunctionresolveObjectEntry
( entries: Record<string, string | string[]>, cwd: string, )
src/features/entry.ts:69
↓ 2 callersFunctionresolvePackageTarget
(pkg?: PackageJson)
src/features/target.ts:52
↓ 2 callersFunctionresolveWithResolver
( resolver: ResolverFactory, specifier: string, from: string, )
packages/css/src/resolve.ts:21
↓ 2 callersFunctionrestart
()
src/build.ts:71
↓ 2 callersFunctiontoCssFileName
(jsFileName: string)
packages/css/src/utils.ts:10
↓ 2 callersFunctiontransform
(code: string, filename: string, warningCount = 0)
packages/migrate/src/helpers/tsup-config.test.ts:5
↓ 2 callersFunctiontransformTsupConfig
( code: string, filename: string, )
packages/migrate/src/helpers/tsup-config.ts:49
↓ 2 callersFunctionwriteJsonFile
(filePath: string, content: unknown)
src/utils/json.ts:4
↓ 1 callersFunctionCjsDtsReexportPlugin
()
src/features/cjs.ts:33
↓ 1 callersFunctionCssGuardPlugin
()
src/features/rolldown.ts:395
↓ 1 callersFunctionCssPlugin
( config: ResolvedConfig, { logger }: { logger: Logger }, )
packages/css/src/plugin.ts:56
↓ 1 callersFunctionCssPostPlugin
( config: Pick< ResolvedCssOptions, 'splitting' | 'fileName' | 'minify' | 'target' | 'lightningcss'
packages/css/src/post.ts:9
↓ 1 callersFunctionNodeProtocolPlugin
(nodeProtocolOption: 'strip' | true)
src/features/node-protocol.ts:8
↓ 1 callersFunctionReportPlugin
( config: ResolvedConfig, cjsDts?: boolean, isDualFormat?: boolean, )
src/features/report.ts:60
↓ 1 callersFunctionShebangPlugin
( logger: Logger, cwd: string, nameLabel?: string, isDualFormat?: boolean, )
src/features/shebang.ts:10
↓ 1 callersFunctionWatchPlugin
( configDeps: Set<string>, { config, chunks }: TsdownBundle, )
src/features/watch.ts:10
↓ 1 callersFunction_defaultHandler
(level, ...args)
tests/utils.ts:164
↓ 1 callersFunctionadd
(a: number, b: number)
packages/migrate/tests/fixtures/monorepo/packages/pkg2/src/index.ts:1
↓ 1 callersFunctionansis
(s: string)
src/utils/logger.test.ts:265
↓ 1 callersFunctionapplyLocalsConvention
( modules: Record<string, string>, convention: 'camelCase' | 'camelCaseOnly' | 'dashes' | 'dashesOnly', )
packages/css/src/modules.ts:24
↓ 1 callersFunctionattw
( options: ResolvedConfig, tarball: Buffer<ArrayBuffer>, )
src/features/pkg/attw.ts:112
↓ 1 callersFunctionbuildExe
( config: ResolvedConfig, chunks: RolldownChunk[], )
src/features/exe.ts:105
↓ 1 callersFunctionbuildSingle
* Build a single configuration, without watch and shortcuts features. * @param config Resolved options
src/build.ts:127
↓ 1 callersFunctionbuildSingleExe
( config: ResolvedConfig, bundledFile: string, outputFile: string, executable?: string, target?: Exe
src/features/exe.ts:194
↓ 1 callersFunctionbuildWithConfigs
( configs: ResolvedConfig[], configDeps: Set<string>, _restart: () => void, )
src/build.ts:58
↓ 1 callersFunctionbundleDone
( bundleByPkg: BundleByPkg, bundle: TsdownBundle, )
src/features/pkg/index.ts:54
↓ 1 callersFunctionbundleWithLightningCSS
( filename: string, options: BundleCssOptions, code?: string, )
packages/css/src/lightningcss.ts:83
↓ 1 callersFunctioncalcSize
( options: Required<ReportOptions>, chunk: OutputAsset | OutputChunk, )
src/features/report.ts:158
↓ 1 callersFunctionclean
()
src/build.ts:64
next →1–100 of 308, ranked by callers