MCPcopy Create free account

hub / github.com/codesandbox/sandpack-bundler / functions

Functions296 in github.com/codesandbox/sandpack-bundler

↓ 18 callersMethodsendMessage
(type: string, data: Record<string, any> = {})
src/protocol/iframe.ts:39
↓ 11 callersMethodadd
(o: T)
src/utils/Disposable.ts:86
↓ 8 callersMethodresolveAsync
( specifier: string, filename: string, extensions: string[] = ['.js', '.jsx', '.mjs', '.cjs', '.ts
src/bundler/bundler.ts:183
↓ 7 callersMethoddispose
* Dispose this object.
src/utils/Disposable.ts:8
↓ 7 callersMethodensureHMRConfig
Get hmr config, if it does not exist it will be created and this module marked as hot
src/bundler/module/hot.ts:24
↓ 7 callersMethodregisterTransformer
(transformer: Transformer)
src/bundler/presets/Preset.ts:15
↓ 7 callersFunctionresolve
(...args: string[])
src/utils/path.ts:187
↓ 7 callersMethodtransformModule
Transform file at a certain absolute path
src/bundler/bundler.ts:229
↓ 6 callersFunctiongetLinesAround
* * @param {number} line The line number to provide context around. * @param {number} count The number of lines you'd like for context. * @param {s
src/error-listener/get-lines-around.ts:18
↓ 6 callersMethodgetModule
(filepath: string)
src/bundler/bundler.ts:94
↓ 6 callersFunctionnormalizeAliasFilePath
( specifier: string, pkgRoot: string, // This can be set to false to fallback to returning the specifier
src/resolver/utils/alias.ts:3
↓ 6 callersMethodreadFileSync
(path: string)
src/FileSystem/FSLayer.ts:16
↓ 5 callersMethodaddEventListener
(type: string, listener: (ev: any) => any)
src/utils/WorkerMessageBus.ts:9
↓ 5 callersMethodevaluate
()
src/bundler/module/Module.ts:129
↓ 5 callersMethodfire
Invoke all listeners registered to this event.
src/utils/emitter.ts:46
↓ 5 callersFunctionnormalizeModuleSpecifier
(specifier: string)
src/resolver/resolver.ts:233
↓ 5 callersMethodreadFileAsync
(path: string)
src/FileSystem/FSLayer.ts:20
↓ 5 callersMethodresetCompilation
()
src/bundler/module/Module.ts:96
↓ 5 callersFunctionshouldLog
(minimalLogLevel: SandpackLogLevel)
src/utils/logger.ts:30
↓ 5 callersMethodshouldSkipLayer
(path: string)
src/FileSystem/FSLayer.ts:4
↓ 4 callersFunctiongetNameFromConfigEntry
(entry: any)
src/bundler/transforms/babel/babel-worker.ts:16
↓ 4 callersFunctiongetParentDirectories
(filepath: string, rootDir: string = '/')
src/resolver/utils/fs.ts:15
↓ 4 callersMethodgetSource
* Returns the source of the frame. * This contains the file name, line number, and column number when available.
src/error-listener/stack-frame.ts:74
↓ 4 callersMethodpostMessage
(message: any, ...params: any[])
src/utils/WorkerMessageBus.ts:8
↓ 4 callersFunctionprocessPackageJSON
(content: any, pkgRoot: string)
src/resolver/utils/pkg-json.ts:15
↓ 4 callersMethodsetType
(type: 'accept' | 'decline' | undefined)
src/bundler/module/HMR.ts:40
↓ 4 callersMethodwriteFile
(path: string, content: string)
src/FileSystem/FSLayer.ts:12
↓ 3 callersFunctioncount
(search: string, string: string)
src/error-listener/unmapper.ts:15
↓ 3 callersMethodgetModuleFromPath
Turns a path into [moduleName, relativePath]
src/FileSystem/layers/NodeModuleFSLayer.ts:55
↓ 3 callersFunctionloadPackageJSON
( filepath: string, opts: IResolveOptions, rootDir: string = '/' )
src/resolver/resolver.ts:48
↓ 3 callersFunctionparseStack
(stack: string[])
src/error-listener/parser.ts:32
↓ 3 callersFunctionretryFetch
(input: RequestInfo, init: RequestInitWithRetry = {}, count = 0)
src/utils/fetch.ts:33
↓ 2 callersMethodaddDependency
Add dependency
src/bundler/module/Module.ts:46
↓ 2 callersMethodcompile
(files: ISandboxFile[])
src/bundler/bundler.ts:290
↓ 2 callersMethodcreate
(cb: () => void)
src/utils/Disposable.ts:43
↓ 2 callersFunctionencodePayload
(payload: string)
src/bundler/module-registry/module-cdn.ts:20
↓ 2 callersFunctionerrorMessage
(error: BundlerError)
src/errors/util.ts:3
↓ 2 callersFunctionexpandFile
( filepath: string, opts: IResolveOptions, expandCount: number = 0 )
src/resolver/resolver.ts:204
↓ 2 callersFunctionextractLocation
(token: string)
src/error-listener/parser.ts:12
↓ 2 callersFunctionextractModuleSpecifierParts
(specifier: string)
src/resolver/utils/module-specifier.ts:1
↓ 2 callersFunctionfindPackageJSON
(filepath: string, opts: IResolveOptions)
src/resolver/resolver.ts:188
↓ 2 callersMethodgetInitiators
(id: string)
src/bundler/bundler.ts:102
↓ 2 callersMethodgetIsFileCache
(path: string)
src/FileSystem/layers/IFrameFSLayer.ts:26
↓ 2 callersFunctiongetSourceMap
* Returns an instance of <code>{@link SourceMap}</code> for a given fileUri and fileContents. * @param {string} fileUri The URI of the source file.
src/error-listener/get-source-map.ts:94
↓ 2 callersFunctiongetUnpkgSpecifier
(moduleName: string, moduleVersion: string, path: string)
src/FileSystem/layers/NodeModuleFSLayer.ts:7
↓ 2 callersFunctionhandleCharset
(stmt)
src/bundler/transforms/css/import-loader/index.ts:206
↓ 2 callersMethodinit
(bundler: Bundler)
src/bundler/presets/Preset.ts:28
↓ 2 callersMethodisFileSync
(path: string)
src/FileSystem/FSLayer.ts:24
↓ 2 callersMethodisHot
()
src/bundler/module/Module.ts:41
↓ 2 callersFunctionload
(key: string, loader: LoaderFn)
src/bundler/transforms/babel/babel-plugin-registry.ts:39
↓ 2 callersMethodmoduleFinishedPromise
(id: string, moduleIds: Set<string> = new Set())
src/bundler/bundler.ts:239
↓ 2 callersFunctionnormalize
(path: string)
src/utils/path.ts:38
↓ 2 callersFunctionnormalizeArray
(parts: string[], allowAboveRoot?: boolean)
src/utils/path.ts:12
↓ 2 callersFunctionnormalizePackageExport
(filepath: string, pkgRoot: string)
src/resolver/utils/exports.ts:14
↓ 2 callersFunctionparseStyles
(result, styles, options, state, media, layer)
src/bundler/transforms/css/import-loader/index.ts:176
↓ 2 callersFunctionprocessTSConfig
(content: string)
src/resolver/utils/tsconfig.ts:10
↓ 2 callersMethodprotocolRequest
(protocolName: string, method: string, params: Array<any>)
src/protocol/iframe.ts:48
↓ 2 callersMethodremoveEventListener
(type: string, listener: (ev: any) => any)
src/utils/WorkerMessageBus.ts:10
↓ 2 callersFunctionresolveAlias
(pkgJson: IFoundPackageJSON, filename: string)
src/resolver/resolver.ts:90
↓ 2 callersMethodsetDirty
(dirty: boolean)
src/bundler/module/HMR.ts:44
↓ 2 callersMethodsetSelfAccepted
(selfAccepted: boolean)
src/bundler/module/HMR.ts:33
↓ 2 callersFunctionsplit
(params, start)
src/bundler/transforms/css/import-loader/parse-statements.ts:4
↓ 2 callersMethodtoString
* Returns a pretty version of this stack frame.
src/error-listener/stack-frame.ts:91
↓ 2 callersFunctiontrimArray
(arr: string[])
src/utils/path.ts:214
↓ 1 callersMethod_fetchModule
(name: string, version: string)
src/bundler/module-registry/index.ts:43
↓ 1 callersMethod_fetchUnpkgFile
(specifier: string)
src/FileSystem/layers/NodeModuleFSLayer.ts:19
↓ 1 callersMethod_postMessage
(message: any)
src/protocol/iframe.ts:35
↓ 1 callersMethod_transformModule
(path: string)
src/bundler/bundler.ts:205
↓ 1 callersMethod_writePrecompiledModule
(path: string, file: ICDNModuleFile)
src/bundler/module-registry/index.ts:69
↓ 1 callersMethodaddEntry
(id: string, run: () => Promise<T>)
src/utils/NamedPromiseQueue.ts:15
↓ 1 callersMethodaddInitiator
(moduleId: string, initiatorId: string)
src/bundler/bundler.ts:106
↓ 1 callersFunctionapplyMedia
(bundle: any[])
src/bundler/transforms/css/import-loader/index.ts:87
↓ 1 callersFunctionapplyRaws
(bundle)
src/bundler/transforms/css/import-loader/index.ts:73
↓ 1 callersFunctionapplyStyles
(bundle, styles)
src/bundler/transforms/css/import-loader/index.ts:159
↓ 1 callersFunctionassertPath
(path: string)
src/utils/path.ts:130
↓ 1 callersMethodaugmentDependencies
(dependencies: DepMap)
src/bundler/presets/Preset.ts:47
↓ 1 callersMethodcallAcceptCallback
()
src/bundler/module/HMR.ts:18
↓ 1 callersMethodcallDisposeHandler
()
src/bundler/module/HMR.ts:10
↓ 1 callersMethodclear
* Dispose of all registered disposables but do not mark this object as disposed.
src/utils/Disposable.ts:76
↓ 1 callersMethodclone
()
src/bundler/module/hot.ts:13
↓ 1 callersFunctioncollectDependencies
(requires: Set<string>)
src/bundler/transforms/babel/dep-collector.ts:1
↓ 1 callersMethodconfigureFS
(opts: IFSOptions)
src/bundler/bundler.ts:73
↓ 1 callersFunctioncrashWithFrames
(bundler: Bundler, crash: (record: ErrorRecord) => void)
src/error-listener/index.ts:20
↓ 1 callersMethoddebounce
(callback: () => any)
src/utils/Debouncer.ts:12
↓ 1 callersMethodenableHMR
()
src/bundler/bundler.ts:98
↓ 1 callersMethodenableIFrameFS
()
src/FileSystem/layers/IFrameFSLayer.ts:14
↓ 1 callersFunctionextractPathFromExport
(exportValue: PackageExportType, pkgRoot: string)
src/resolver/utils/exports.ts:18
↓ 1 callersFunctionextractSourceMapUrl
(fileUri: string, fileContents: string)
src/error-listener/get-source-map.ts:73
↓ 1 callersFunctionfetchManifest
(deps: DepMap)
src/bundler/module-registry/module-cdn.ts:24
↓ 1 callersMethodfetchManifest
(deps: DepMap, shouldFilterBuildDeps = true)
src/bundler/module-registry/index.ts:24
↓ 1 callersFunctionfetchModule
(name: string, version: string)
src/bundler/module-registry/module-cdn.ts:52
↓ 1 callersMethodfetchNodeModule
(name: string, version: string)
src/bundler/module-registry/index.ts:51
↓ 1 callersMethodfetchUnpkgFile
(moduleName: string, moduleVersion: string, path: string)
src/FileSystem/layers/NodeModuleFSLayer.ts:31
↓ 1 callersFunctionfilterBuildDeps
(deps: DepMap)
src/bundler/module-registry/build-dep.ts:26
↓ 1 callersFunctiongetDocumentHeight
()
src/utils/document.ts:1
↓ 1 callersMethodgetFunctionName
* Returns the name of this function.
src/error-listener/stack-frame.ts:66
↓ 1 callersMethodgetGeneratedPosition
* Returns the generated code position for an original position. * @param {string} source The source file of the original code position. * @param
src/error-listener/get-source-map.ts:47
↓ 1 callersMethodgetHTMLEntry
()
src/bundler/bundler.ts:444
↓ 1 callersFunctiongetHTMLParts
(html: string)
src/utils/html.ts:1
↓ 1 callersMethodgetItem
(id: string)
src/utils/NamedPromiseQueue.ts:26
next →1–100 of 296, ranked by callers