Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/StarkShang/vite-plugin-chrome-extension
/ functions
Functions
208 in github.com/StarkShang/vite-plugin-chrome-extension
⨍
Functions
208
◇
Types & classes
39
↓ 167 callers
Function
byFileName
(n: string)
__fixtures__/utils.ts:41
↓ 100 callers
Function
getExtPath
(path: string)
__fixtures__/utils.ts:24
↓ 42 callers
Function
resolve
(value?: T)
src/manifest-input/browser/defer.ts:10
↓ 36 callers
Function
chromeExtension
( options = {} as ChromeExtensionOptions, )
src/index.ts:23
↓ 30 callers
Function
cloneObject
(obj: T)
src/utils/cloneObject.ts:1
↓ 25 callers
Function
requireExtFile
( currentFilename: string, targetFilename: string, )
__fixtures__/utils.ts:27
↓ 18 callers
Function
simpleReloader
( { executeScript = true, unregisterServiceWorkers = true, } = {} as SimpleReloaderOpt
src/plugin-reloader-simple/index.ts:39
↓ 15 callers
Function
deriveFiles
( manifest: ChromeExtensionManifest, srcDir: string, )
src/manifest-input/manifest-parser/index.ts:32
↓ 11 callers
Function
loadHtml
(rootPath: string)
src/html-inputs/cheerio.ts:20
↓ 11 callers
Function
manifestInput
( { browserPolyfill = false, contentScriptWrapper = true, crossBrowser = false,
src/manifest-input/index.ts:57
↓ 8 callers
Function
getTestName
(filename: string)
__fixtures__/utils.ts:4
↓ 8 callers
Method
resolveManifestPath
(options: InputOptions)
src/processors/manifest.ts:176
↓ 6 callers
Function
getOutputFilenameFromChunk
(sourceFileName: string, chunks: OutputChunk[])
src/utils/helpers.ts:41
↓ 6 callers
Function
reduceToRecord
(srcDir: string | null)
src/manifest-input/reduceToRecord.ts:5
↓ 6 callers
Method
resolveInput
(input?: InputOption)
src/processors/html.ts:26
↓ 5 callers
Function
getCrxName
(filepath: string)
__fixtures__/utils.ts:18
↓ 5 callers
Function
getRelativePath
({ filePath, rootPath, }: HtmlFilePathData)
src/html-inputs/cheerio.ts:29
↓ 5 callers
Function
htmlInputs
( htmlInputsOptions: HtmlInputsOptions, /** Used for testing */ cache = { scripts: [],
src/html-inputs/index.ts:30
↓ 5 callers
Function
validate
(ary: any[])
src/manifest-input/manifest-parser/index.ts:145
↓ 4 callers
Method
applyExternalManifestConfiguration
( config: ChromeExtensionConfigurationInfo )
src/processors/manifest.ts:234
↓ 4 callers
Function
combinePerms
( ...permissions: string[] | string[][] )
src/manifest-input/manifest-parser/combine.ts:3
↓ 4 callers
Function
defer
()
src/manifest-input/browser/defer.ts:1
↓ 4 callers
Function
getScriptElems
($: cheerio.Root)
src/html-inputs/cheerio.ts:47
↓ 4 callers
Function
isChunk
( x: OutputChunk | OutputAsset, )
src/utils/helpers.ts:9
↓ 4 callers
Function
removeFileExtension
(filePath: string)
src/common/utils/path.ts:1
↓ 3 callers
Function
emit
( name: string, source: string, isFileName?: boolean,
src/plugin-reloader-simple/index.ts:82
↓ 3 callers
Method
load
* Load content from manifest.json * @param options: rollup input options
src/processors/manifest.ts:64
↓ 3 callers
Function
mixinChunksForIIFE
( context: PluginContext, entry: OutputChunk, bundle: OutputBundle )
src/processors/mixin/index.ts:12
↓ 3 callers
Function
reject
(error: any)
src/manifest-input/browser/defer.ts:13
↓ 3 callers
Method
validateManifestContent
(config: ChromeExtensionConfigurationInfo)
src/processors/manifest.ts:211
↓ 3 callers
Function
withP
(...args: [any, any?])
src/plugin-reloader-simple/client/background.ts:40
↓ 2 callers
Method
addWatchFiles
(context: PluginContext)
src/processors/html.ts:73
↓ 2 callers
Function
buildCRX
( crxPath = "kitchen-sink/rollup.config.js", )
__fixtures__/build-crx.ts:16
↓ 2 callers
Function
callListeners
(...args: any[])
src/manifest-input/browser/captureEvents.ts:37
↓ 2 callers
Function
captureEvents
(events: ChromeEvent[])
src/manifest-input/browser/captureEvents.ts:3
↓ 2 callers
Method
clearCacheById
(id: string)
src/processors/html.ts:123
↓ 2 callers
Function
dedupe
(x: T[])
src/manifest-input/generateBundle.ts:13
↓ 2 callers
Function
delay
(ms: number)
src/manifest-input/browser/delay.ts:1
↓ 2 callers
Method
emitFiles
* Output asset files in html * css, img, script(not local import)
src/processors/html.ts:104
↓ 2 callers
Function
findChunk
(sourceFileName: string, chunks: OutputChunkBundle)
src/utils/helpers.ts:51
↓ 2 callers
Function
findChunkByName
(name: string, bundle: OutputBundle)
src/utils/helpers.ts:45
↓ 2 callers
Function
formatHtml
($: CheerioFile)
src/html-inputs/cheerio.ts:17
↓ 2 callers
Method
generateBundle
(context: PluginContext, bundle: OutputBundle)
src/processors/html.ts:84
↓ 2 callers
Function
getAssets
(bundle: OutputBundle)
src/utils/bundle.ts:14
↓ 2 callers
Function
getChunk
(bundle: OutputBundle)
src/utils/bundle.ts:5
↓ 2 callers
Function
getScripts
($: cheerio.Root)
src/html-inputs/cheerio.ts:93
↓ 2 callers
Function
isAsset
( x: OutputChunk | OutputAsset, )
src/utils/helpers.ts:24
↓ 2 callers
Function
log
(...args: string[])
examples/background/src/common/logs.ts:1
↓ 2 callers
Function
replaceCssUrl
(code: string)
src/common/utils/css.ts:7
↓ 2 callers
Function
setMessage
(str: string)
examples/cookie-clearer/src/popup.ts:94
↓ 2 callers
Function
showReadme
(info, tab)
examples/web-accessible-resources/src/background.ts:11
↓ 2 callers
Function
triggerEvents
()
src/manifest-input/browser/captureEvents.ts:63
↓ 2 callers
Function
validateManifest
( manifest: ChromeExtensionManifest, )
src/manifest-input/manifest-parser/validate.ts:40
↓ 2 callers
Function
validateNames
()
src/validate-names/index.ts:12
↓ 2 callers
Function
withP
(...args: [any, any?])
src/browser-polyfill/browser/executeScriptPolyfill.ts:5
↓ 1 callers
Function
clearMessage
()
examples/cookie-clearer/src/popup.ts:99
↓ 1 callers
Function
deleteDomainCookies
(domain: string)
examples/cookie-clearer/src/popup.ts:50
↓ 1 callers
Method
derivePermissions
( context: PluginContext, chunks: OutputChunkBundle, manifest: ChromeExtensionManifest
src/processors/permission.ts:32
↓ 1 callers
Function
findAssetByName
(name: string, bundle: OutputBundle)
src/utils/helpers.ts:48
↓ 1 callers
Function
flattenRollupInput
(input?: InputOption)
src/common/utils/rollup.ts:3
↓ 1 callers
Method
generateBundleFromDynamicImports
( context: PluginContext, bundle: OutputBundle, dynamicImports: string[], )
src/processors/content-script/content-script.ts:58
↓ 1 callers
Function
generateHtml
( context: PluginContext, htmls: CheerioFile[], chunks: OutputChunk[], options: HtmlInputsOpti
src/html-inputs/generateBundle.ts:7
↓ 1 callers
Function
generateManifest
( context: PluginContext, manifest: ChromeExtensionManifest, )
src/manifest-input/generateBundle.ts:139
↓ 1 callers
Method
generateManifest
( context: PluginContext, manifest: ChromeExtensionManifest, )
src/processors/manifest.ts:258
↓ 1 callers
Function
getAssets
($: cheerio.Root)
src/html-inputs/cheerio.ts:104
↓ 1 callers
Function
getCss
($: cheerio.Root)
src/html-inputs/cheerio.ts:121
↓ 1 callers
Function
getCssHrefs
($: CheerioFile)
src/html-inputs/cheerio.ts:130
↓ 1 callers
Function
getDeepMatches
(object: any, pred: (x: any) => boolean, excludeKeys: string[])
src/manifest-input/browser/getDeepMatches.ts:11
↓ 1 callers
Function
getFavicons
($: cheerio.Root)
src/html-inputs/cheerio.ts:145
↓ 1 callers
Function
getImgSrcs
($: CheerioFile)
src/html-inputs/cheerio.ts:152
↓ 1 callers
Function
getImgs
($: cheerio.Root)
src/html-inputs/cheerio.ts:138
↓ 1 callers
Function
getJsAssets
($: CheerioFile)
src/html-inputs/cheerio.ts:113
↓ 1 callers
Function
getScriptSrc
($: CheerioFile)
src/html-inputs/cheerio.ts:96
↓ 1 callers
Function
innerBuildCRX
( crxPath: string, )
__fixtures__/build-crx.ts:33
↓ 1 callers
Method
isDynamicImportedContentScript
(referenceId: string)
src/processors/manifest.ts:111
↓ 1 callers
Function
isJsonFilePath
(x: any)
src/utils/helpers.ts:34
↓ 1 callers
Function
isString
(x: any)
src/utils/helpers.ts:30
↓ 1 callers
Function
mixinPlugin
( bundle: OutputBundle, )
src/processors/mixin/mixin.plugin.ts:4
↓ 1 callers
Function
mutateScriptElems
({ browserPolyfill, }: Pick<HtmlInputsOptions, "browserPolyfill">)
src/html-inputs/cheerio.ts:56
↓ 1 callers
Function
not
(fn: (x: T) => boolean)
src/utils/helpers.ts:7
↓ 1 callers
Function
prepImportWrapperScript
({ eventDelay = 0, wakeEvents = [], excludeNames = ["extension"], }: DynamicImportWrapperOptions)
src/manifest-input/dynamicImportWrapper.ts:21
↓ 1 callers
Function
reload
()
src/plugin-reloader-simple/client/content.ts:11
↓ 1 callers
Function
replaceContentScriptsPath
( manifest: ChromeExtensionManifest, replace: (path: string) => string, )
src/manifest-input/utils/manifest.ts:14
↓ 1 callers
Function
replaceImportScriptPath
( $: CheerioFile, chunks: OutputChunk[], srcDir: string, browserPolyfill?: boolean | { execute
src/html-inputs/generateBundle.ts:26
↓ 1 callers
Method
replaceImportScriptPath
( $: CheerioFile, chunks: OutputChunk[], srcDir: string, browserPolyfill?: boo
src/processors/html.ts:130
↓ 1 callers
Method
resolveDynamicImports
(context: TransformPluginContext, code: string)
src/processors/background/background.ts:22
↓ 1 callers
Function
resolveFromBundle
( bundle: OutputBundle, )
src/mixed-format/resolveFromBundle.ts:6
↓ 1 callers
Function
resolvePath
(object: Record<string, any>, path: string, defaultValue?: T)
src/manifest-input/browser/resolvePath.ts:1
↓ 1 callers
Function
stringToUrl
(input: string)
examples/cookie-clearer/src/popup.ts:37
↓ 1 callers
Method
transform
(context: TransformPluginContext, code: string, id: string, ssr?: boolean)
src/processors/manifest.ts:105
↓ 1 callers
Function
unregisterServiceWorkers
()
src/plugin-reloader-simple/client/background.ts:101
↓ 1 callers
Function
updateCss
(asset: OutputAsset)
src/common/utils/css.ts:23
↓ 1 callers
Function
updateManifest
( updater: ( manifest: ChromeExtensionManifest, ) => ChromeExtensionManifest, bundle: Outp
src/utils/helpers.ts:58
↓ 1 callers
Method
validateManifest
()
src/processors/manifest.ts:226
↓ 1 callers
Function
webRequest
(s: string)
src/manifest-input/manifest-parser/permissions.ts:109
Function
App
()
__fixtures__/extensions/content-script-react-js/src/pages/popup/App.js:3
Function
App
()
__fixtures__/extensions/content-script-react-tsx/src/pages/popup/App.tsx:3
Function
App
()
__fixtures__/extensions/basic-js/src/pages/popup/App.js:3
Function
App
()
__fixtures__/extensions/basic-ts/src/pages/popup/App.tsx:3
Method
addWatchFiles
* Add watch files * @param context Rollup Plugin Context
src/processors/manifest.ts:119
next →
1–100 of 208, ranked by callers