Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codesandbox/sandpack-bundler
/ functions
Functions
296 in github.com/codesandbox/sandpack-bundler
⨍
Functions
296
◇
Types & classes
105
↓ 18 callers
Method
sendMessage
(type: string, data: Record<string, any> = {})
src/protocol/iframe.ts:39
↓ 11 callers
Method
add
(o: T)
src/utils/Disposable.ts:86
↓ 8 callers
Method
resolveAsync
( specifier: string, filename: string, extensions: string[] = ['.js', '.jsx', '.mjs', '.cjs', '.ts
src/bundler/bundler.ts:183
↓ 7 callers
Method
dispose
* Dispose this object.
src/utils/Disposable.ts:8
↓ 7 callers
Method
ensureHMRConfig
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 callers
Method
registerTransformer
(transformer: Transformer)
src/bundler/presets/Preset.ts:15
↓ 7 callers
Function
resolve
(...args: string[])
src/utils/path.ts:187
↓ 7 callers
Method
transformModule
Transform file at a certain absolute path
src/bundler/bundler.ts:229
↓ 6 callers
Function
getLinesAround
* * @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 callers
Method
getModule
(filepath: string)
src/bundler/bundler.ts:94
↓ 6 callers
Function
normalizeAliasFilePath
( specifier: string, pkgRoot: string, // This can be set to false to fallback to returning the specifier
src/resolver/utils/alias.ts:3
↓ 6 callers
Method
readFileSync
(path: string)
src/FileSystem/FSLayer.ts:16
↓ 5 callers
Method
addEventListener
(type: string, listener: (ev: any) => any)
src/utils/WorkerMessageBus.ts:9
↓ 5 callers
Method
evaluate
()
src/bundler/module/Module.ts:129
↓ 5 callers
Method
fire
Invoke all listeners registered to this event.
src/utils/emitter.ts:46
↓ 5 callers
Function
normalizeModuleSpecifier
(specifier: string)
src/resolver/resolver.ts:233
↓ 5 callers
Method
readFileAsync
(path: string)
src/FileSystem/FSLayer.ts:20
↓ 5 callers
Method
resetCompilation
()
src/bundler/module/Module.ts:96
↓ 5 callers
Function
shouldLog
(minimalLogLevel: SandpackLogLevel)
src/utils/logger.ts:30
↓ 5 callers
Method
shouldSkipLayer
(path: string)
src/FileSystem/FSLayer.ts:4
↓ 4 callers
Function
getNameFromConfigEntry
(entry: any)
src/bundler/transforms/babel/babel-worker.ts:16
↓ 4 callers
Function
getParentDirectories
(filepath: string, rootDir: string = '/')
src/resolver/utils/fs.ts:15
↓ 4 callers
Method
getSource
* 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 callers
Method
postMessage
(message: any, ...params: any[])
src/utils/WorkerMessageBus.ts:8
↓ 4 callers
Function
processPackageJSON
(content: any, pkgRoot: string)
src/resolver/utils/pkg-json.ts:15
↓ 4 callers
Method
setType
(type: 'accept' | 'decline' | undefined)
src/bundler/module/HMR.ts:40
↓ 4 callers
Method
writeFile
(path: string, content: string)
src/FileSystem/FSLayer.ts:12
↓ 3 callers
Function
count
(search: string, string: string)
src/error-listener/unmapper.ts:15
↓ 3 callers
Method
getModuleFromPath
Turns a path into [moduleName, relativePath]
src/FileSystem/layers/NodeModuleFSLayer.ts:55
↓ 3 callers
Function
loadPackageJSON
( filepath: string, opts: IResolveOptions, rootDir: string = '/' )
src/resolver/resolver.ts:48
↓ 3 callers
Function
parseStack
(stack: string[])
src/error-listener/parser.ts:32
↓ 3 callers
Function
retryFetch
(input: RequestInfo, init: RequestInitWithRetry = {}, count = 0)
src/utils/fetch.ts:33
↓ 2 callers
Method
addDependency
Add dependency
src/bundler/module/Module.ts:46
↓ 2 callers
Method
compile
(files: ISandboxFile[])
src/bundler/bundler.ts:290
↓ 2 callers
Method
create
(cb: () => void)
src/utils/Disposable.ts:43
↓ 2 callers
Function
encodePayload
(payload: string)
src/bundler/module-registry/module-cdn.ts:20
↓ 2 callers
Function
errorMessage
(error: BundlerError)
src/errors/util.ts:3
↓ 2 callers
Function
expandFile
( filepath: string, opts: IResolveOptions, expandCount: number = 0 )
src/resolver/resolver.ts:204
↓ 2 callers
Function
extractLocation
(token: string)
src/error-listener/parser.ts:12
↓ 2 callers
Function
extractModuleSpecifierParts
(specifier: string)
src/resolver/utils/module-specifier.ts:1
↓ 2 callers
Function
findPackageJSON
(filepath: string, opts: IResolveOptions)
src/resolver/resolver.ts:188
↓ 2 callers
Method
getInitiators
(id: string)
src/bundler/bundler.ts:102
↓ 2 callers
Method
getIsFileCache
(path: string)
src/FileSystem/layers/IFrameFSLayer.ts:26
↓ 2 callers
Function
getSourceMap
* 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 callers
Function
getUnpkgSpecifier
(moduleName: string, moduleVersion: string, path: string)
src/FileSystem/layers/NodeModuleFSLayer.ts:7
↓ 2 callers
Function
handleCharset
(stmt)
src/bundler/transforms/css/import-loader/index.ts:206
↓ 2 callers
Method
init
(bundler: Bundler)
src/bundler/presets/Preset.ts:28
↓ 2 callers
Method
isFileSync
(path: string)
src/FileSystem/FSLayer.ts:24
↓ 2 callers
Method
isHot
()
src/bundler/module/Module.ts:41
↓ 2 callers
Function
load
(key: string, loader: LoaderFn)
src/bundler/transforms/babel/babel-plugin-registry.ts:39
↓ 2 callers
Method
moduleFinishedPromise
(id: string, moduleIds: Set<string> = new Set())
src/bundler/bundler.ts:239
↓ 2 callers
Function
normalize
(path: string)
src/utils/path.ts:38
↓ 2 callers
Function
normalizeArray
(parts: string[], allowAboveRoot?: boolean)
src/utils/path.ts:12
↓ 2 callers
Function
normalizePackageExport
(filepath: string, pkgRoot: string)
src/resolver/utils/exports.ts:14
↓ 2 callers
Function
parseStyles
(result, styles, options, state, media, layer)
src/bundler/transforms/css/import-loader/index.ts:176
↓ 2 callers
Function
processTSConfig
(content: string)
src/resolver/utils/tsconfig.ts:10
↓ 2 callers
Method
protocolRequest
(protocolName: string, method: string, params: Array<any>)
src/protocol/iframe.ts:48
↓ 2 callers
Method
removeEventListener
(type: string, listener: (ev: any) => any)
src/utils/WorkerMessageBus.ts:10
↓ 2 callers
Function
resolveAlias
(pkgJson: IFoundPackageJSON, filename: string)
src/resolver/resolver.ts:90
↓ 2 callers
Method
setDirty
(dirty: boolean)
src/bundler/module/HMR.ts:44
↓ 2 callers
Method
setSelfAccepted
(selfAccepted: boolean)
src/bundler/module/HMR.ts:33
↓ 2 callers
Function
split
(params, start)
src/bundler/transforms/css/import-loader/parse-statements.ts:4
↓ 2 callers
Method
toString
* Returns a pretty version of this stack frame.
src/error-listener/stack-frame.ts:91
↓ 2 callers
Function
trimArray
(arr: string[])
src/utils/path.ts:214
↓ 1 callers
Method
_fetchModule
(name: string, version: string)
src/bundler/module-registry/index.ts:43
↓ 1 callers
Method
_fetchUnpkgFile
(specifier: string)
src/FileSystem/layers/NodeModuleFSLayer.ts:19
↓ 1 callers
Method
_postMessage
(message: any)
src/protocol/iframe.ts:35
↓ 1 callers
Method
_transformModule
(path: string)
src/bundler/bundler.ts:205
↓ 1 callers
Method
_writePrecompiledModule
(path: string, file: ICDNModuleFile)
src/bundler/module-registry/index.ts:69
↓ 1 callers
Method
addEntry
(id: string, run: () => Promise<T>)
src/utils/NamedPromiseQueue.ts:15
↓ 1 callers
Method
addInitiator
(moduleId: string, initiatorId: string)
src/bundler/bundler.ts:106
↓ 1 callers
Function
applyMedia
(bundle: any[])
src/bundler/transforms/css/import-loader/index.ts:87
↓ 1 callers
Function
applyRaws
(bundle)
src/bundler/transforms/css/import-loader/index.ts:73
↓ 1 callers
Function
applyStyles
(bundle, styles)
src/bundler/transforms/css/import-loader/index.ts:159
↓ 1 callers
Function
assertPath
(path: string)
src/utils/path.ts:130
↓ 1 callers
Method
augmentDependencies
(dependencies: DepMap)
src/bundler/presets/Preset.ts:47
↓ 1 callers
Method
callAcceptCallback
()
src/bundler/module/HMR.ts:18
↓ 1 callers
Method
callDisposeHandler
()
src/bundler/module/HMR.ts:10
↓ 1 callers
Method
clear
* Dispose of all registered disposables but do not mark this object as disposed.
src/utils/Disposable.ts:76
↓ 1 callers
Method
clone
()
src/bundler/module/hot.ts:13
↓ 1 callers
Function
collectDependencies
(requires: Set<string>)
src/bundler/transforms/babel/dep-collector.ts:1
↓ 1 callers
Method
configureFS
(opts: IFSOptions)
src/bundler/bundler.ts:73
↓ 1 callers
Function
crashWithFrames
(bundler: Bundler, crash: (record: ErrorRecord) => void)
src/error-listener/index.ts:20
↓ 1 callers
Method
debounce
(callback: () => any)
src/utils/Debouncer.ts:12
↓ 1 callers
Method
enableHMR
()
src/bundler/bundler.ts:98
↓ 1 callers
Method
enableIFrameFS
()
src/FileSystem/layers/IFrameFSLayer.ts:14
↓ 1 callers
Function
extractPathFromExport
(exportValue: PackageExportType, pkgRoot: string)
src/resolver/utils/exports.ts:18
↓ 1 callers
Function
extractSourceMapUrl
(fileUri: string, fileContents: string)
src/error-listener/get-source-map.ts:73
↓ 1 callers
Function
fetchManifest
(deps: DepMap)
src/bundler/module-registry/module-cdn.ts:24
↓ 1 callers
Method
fetchManifest
(deps: DepMap, shouldFilterBuildDeps = true)
src/bundler/module-registry/index.ts:24
↓ 1 callers
Function
fetchModule
(name: string, version: string)
src/bundler/module-registry/module-cdn.ts:52
↓ 1 callers
Method
fetchNodeModule
(name: string, version: string)
src/bundler/module-registry/index.ts:51
↓ 1 callers
Method
fetchUnpkgFile
(moduleName: string, moduleVersion: string, path: string)
src/FileSystem/layers/NodeModuleFSLayer.ts:31
↓ 1 callers
Function
filterBuildDeps
(deps: DepMap)
src/bundler/module-registry/build-dep.ts:26
↓ 1 callers
Function
getDocumentHeight
()
src/utils/document.ts:1
↓ 1 callers
Method
getFunctionName
* Returns the name of this function.
src/error-listener/stack-frame.ts:66
↓ 1 callers
Method
getGeneratedPosition
* 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 callers
Method
getHTMLEntry
()
src/bundler/bundler.ts:444
↓ 1 callers
Function
getHTMLParts
(html: string)
src/utils/html.ts:1
↓ 1 callers
Method
getItem
(id: string)
src/utils/NamedPromiseQueue.ts:26
next →
1–100 of 296, ranked by callers