SYMBOL INDEX (831 symbols across 143 files) FILE: create-snowpack-app/app-scripts-preact/jest/cssTransform.js method process (line 15) | process() { method getCacheKey (line 18) | getCacheKey() { FILE: create-snowpack-app/app-scripts-preact/jest/fileTransform.js method process (line 5) | process(src, filename) { FILE: create-snowpack-app/app-scripts-react/jest/cssTransform.js method process (line 15) | process() { method getCacheKey (line 18) | getCacheKey() { FILE: create-snowpack-app/app-scripts-react/jest/esbuildTransform.js method process (line 11) | process(code, filename) { FILE: create-snowpack-app/app-scripts-react/jest/fileTransform.js method process (line 5) | process(src, filename) { FILE: create-snowpack-app/app-scripts-react/jest/importMetaBabelPlugin.js method MetaProperty (line 23) | MetaProperty(path) { FILE: create-snowpack-app/app-scripts-svelte/jest.config.js function getUserSvelteConfig (line 32) | function getUserSvelteConfig() { FILE: create-snowpack-app/app-scripts-svelte/jest/babelTransform.js function getUserBabelConfig (line 31) | function getUserBabelConfig() { FILE: create-snowpack-app/app-scripts-svelte/jest/importMetaBabelPlugin.js method MetaProperty (line 23) | MetaProperty(path) { FILE: create-snowpack-app/app-template-lit-element-typescript/src/app-root.ts class AppRoot (line 4) | class AppRoot extends LitElement { method styles (line 7) | static get styles() { method render (line 28) | render() { FILE: create-snowpack-app/app-template-lit-element/src/app-root.js class AppRoot (line 4) | class AppRoot extends LitElement { method styles (line 7) | static get styles() { method render (line 28) | render() { FILE: create-snowpack-app/app-template-preact-typescript/src/App.tsx function App (line 6) | function App() { FILE: create-snowpack-app/app-template-preact/src/App.jsx function App (line 6) | function App() { FILE: create-snowpack-app/app-template-react-typescript/src/App.tsx type AppProps (line 5) | interface AppProps {} function App (line 7) | function App({}: AppProps) { FILE: create-snowpack-app/app-template-react/src/App.jsx function App (line 5) | function App() { FILE: create-snowpack-app/cli/createSnowpackApp.js function logError (line 11) | function logError(msg) { function hasPmInstalled (line 16) | function hasPmInstalled(packageManager) { function validateArgs (line 25) | function validateArgs(args) { function verifyProjectTemplate (line 64) | async function verifyProjectTemplate(isLocalTemplate, {template, dir}) { function cleanProject (line 98) | async function cleanProject(dir) { function initializeGitRepo (line 125) | async function initializeGitRepo(targetDirectory) { function installProcess (line 197) | function installProcess(packageManager) { function formatCommand (line 230) | function formatCommand(command, description) { FILE: esinstall/src/entrypoints.ts constant MAIN_FIELDS (line 10) | const MAIN_FIELDS = [ constant BROKEN_BROWSER_ENTRYPOINT (line 21) | const BROKEN_BROWSER_ENTRYPOINT = ['@sheerun/mutationobserver-shim']; constant FILE_EXTENSION_REGEX (line 22) | const FILE_EXTENSION_REGEX = /\..+$/; function getMissingEntrypointHint (line 24) | function getMissingEntrypointHint( type FindManifestEntryOptions (line 50) | type FindManifestEntryOptions = { function findManifestEntry (line 58) | function findManifestEntry( function findExportMapEntry (line 113) | function findExportMapEntry( type ResolveEntrypointOptions (line 140) | type ResolveEntrypointOptions = { function resolveEntrypoint (line 151) | function resolveEntrypoint( function explodeExportMap (line 367) | function explodeExportMap( FILE: esinstall/src/index.ts type DependencyLoc (line 50) | type DependencyLoc = { function isImportOfPackage (line 55) | function isImportOfPackage(importUrl: string, packageName: string) { function resolveWebDependency (line 65) | function resolveWebDependency( function generateEnvObject (line 76) | function generateEnvObject(userEnv: EnvVarReplacements): Object { function generateReplacements (line 87) | function generateReplacements(env: Object): {[key: string]: string} { type InstallOptions (line 99) | interface InstallOptions { type PublicInstallOptions (line 124) | type PublicInstallOptions = Partial; type InstallResult (line 126) | type InstallResult = {importMap: ImportMap; stats: DependencyStatsOutput... function setOptionDefaults (line 131) | function setOptionDefaults(_options: PublicInstallOptions): InstallOptio... function install (line 173) | async function install( FILE: esinstall/src/rollup-plugins/generateProcessPolyfill.ts function generateProcessPolyfill (line 31) | function generateProcessPolyfill(env) { FILE: esinstall/src/rollup-plugins/rollup-plugin-alias.ts constant VOLUME (line 32) | const VOLUME = /^([A-Z]:)/i; constant IS_WINDOWS (line 33) | const IS_WINDOWS = platform() === 'win32'; function matches (line 36) | function matches(alias: Alias, importee: string) { function normalizeId (line 56) | function normalizeId(id: string | undefined) { type Alias (line 63) | interface Alias { function getEntries (line 69) | function getEntries({entries}): readonly Alias[] { function rollupPluginAlias (line 76) | function rollupPluginAlias(options: {entries: Alias[]}): Plugin { FILE: esinstall/src/rollup-plugins/rollup-plugin-catch-fetch.ts constant FETCH_POLYFILL (line 4) | const FETCH_POLYFILL = ` function isNodeFetch (line 30) | function isNodeFetch(id: string): boolean { function rollupPluginCatchFetch (line 39) | function rollupPluginCatchFetch(): Plugin { FILE: esinstall/src/rollup-plugins/rollup-plugin-catch-unresolved.ts function rollupPluginCatchUnresolved (line 9) | function rollupPluginCatchUnresolved(): Plugin { FILE: esinstall/src/rollup-plugins/rollup-plugin-css.ts function getInjectorCode (line 3) | function getInjectorCode(name: string, code: string) { function rollupPluginCss (line 28) | function rollupPluginCss() { FILE: esinstall/src/rollup-plugins/rollup-plugin-node-process-polyfill.ts constant PROCESS_MODULE_NAME (line 5) | const PROCESS_MODULE_NAME = 'process'; function rollupPluginNodeProcessPolyfill (line 6) | function rollupPluginNodeProcessPolyfill(env = {}): Plugin { FILE: esinstall/src/rollup-plugins/rollup-plugin-stats.ts function rollupPluginDependencyStats (line 7) | function rollupPluginDependencyStats( FILE: esinstall/src/rollup-plugins/rollup-plugin-strip-source-mapping.ts function rollupPluginStripSourceMapping (line 8) | function rollupPluginStripSourceMapping(): Plugin { FILE: esinstall/src/rollup-plugins/rollup-plugin-wrap-install-targets.ts function isValidNamedExport (line 14) | function isValidNamedExport(name: string): boolean { constant TRUSTED_CJS_PACKAGES (line 21) | const TRUSTED_CJS_PACKAGES = ['chai/index.js', 'events/events.js', 'uuid... constant UNSCANNABLE_CJS_PACKAGES (line 28) | const UNSCANNABLE_CJS_PACKAGES = [ function rollupPluginWrapInstallTargets (line 48) | function rollupPluginWrapInstallTargets( FILE: esinstall/src/stats.ts constant SIZE_COLUMN_WIDTH (line 5) | const SIZE_COLUMN_WIDTH = 11; function entriesSort (line 8) | function entriesSort([filenameA]: [string, any], [filenameB]: [string, a... function formatSize (line 13) | function formatSize(size) { function formatDelta (line 29) | function formatDelta(delta) { function formatFileInfo (line 35) | function formatFileInfo( function formatFiles (line 55) | function formatFiles(files: [string, DependencyStats][], padEnd: number) { function printStats (line 67) | function printStats(dependencyStats: DependencyStatsOutput): string { FILE: esinstall/src/types.ts type DeepPartial (line 1) | type DeepPartial = { type EnvVarReplacements (line 9) | type EnvVarReplacements = Record; type ImportMap (line 11) | interface ImportMap { type AbstractLogger (line 15) | interface AbstractLogger { type InstallTarget (line 28) | type InstallTarget = { type DependencyStats (line 36) | type DependencyStats = { type DependencyType (line 43) | type DependencyType = 'direct' | 'common'; type DependencyStatsMap (line 45) | type DependencyStatsMap = { type DependencyStatsOutput (line 49) | type DependencyStatsOutput = Record; type LoggerLevel (line 51) | type LoggerLevel = 'debug' | 'info' | 'warn' | 'error' | 'silent'; type LoggerEvent (line 52) | type LoggerEvent = 'debug' | 'info' | 'warn' | 'error'; type LoggerOptions (line 53) | interface LoggerOptions { type ExportMapEntry (line 59) | type ExportMapEntry = type ExportMap (line 68) | type ExportMap = Record; type ExportField (line 69) | type ExportField = string | ExportMap; type BrowserField (line 78) | type BrowserField = string | Record; type PackageManifest (line 81) | type PackageManifest = { type PackageManifestWithExports (line 92) | type PackageManifestWithExports = PackageManifest & { FILE: esinstall/src/util.ts constant NATIVE_REQUIRE (line 8) | const NATIVE_REQUIRE = eval('require'); function writeLockfile (line 10) | async function writeLockfile(loc: string, importMap: ImportMap): Promise... function isRemoteUrl (line 18) | function isRemoteUrl(val: string): boolean { function isTruthy (line 22) | function isTruthy(item: T | false | null | undefined): item is T { function parsePackageImportSpecifier (line 27) | function parsePackageImportSpecifier(imp: string): [string, string | nul... function resolveDependencyManifest (line 45) | function resolveDependencyManifest( constant MISSING_PLUGIN_SUGGESTIONS (line 68) | const MISSING_PLUGIN_SUGGESTIONS: {[ext: string]: string} = { function findMatchingAliasEntry (line 78) | function findMatchingAliasEntry( function isPackageAliasEntry (line 112) | function isPackageAliasEntry(val: string): boolean { function getExt (line 117) | function getExt(fileName: string) { function sanitizePackageName (line 131) | function sanitizePackageName(filepath: string): string { function getWebDependencyName (line 141) | function getWebDependencyName(dep: string): string { function addLeadingSlash (line 148) | function addLeadingSlash(path: string) { function addTrailingSlash (line 153) | function addTrailingSlash(path: string) { function removeLeadingSlash (line 158) | function removeLeadingSlash(path: string) { function removeTrailingSlash (line 163) | function removeTrailingSlash(path: string) { function createInstallTarget (line 167) | function createInstallTarget(specifier: string, all = true): InstallTarg... function isJavaScript (line 177) | function isJavaScript(pathname: string): boolean { function getWebDependencyType (line 189) | function getWebDependencyType(pathname: string): 'ASSET' | 'BUNDLE' | 'D... FILE: examples/react-global-imports/src/App.jsx function App (line 5) | function App() { FILE: examples/react-loadable-components/src/App.jsx function App (line 7) | function App() { FILE: examples/react-loadable-components/src/Async.jsx function Async (line 3) | function Async() { FILE: plugins/plugin-babel/plugin.js method load (line 22) | async load({filePath, isPackage}) { method cleanup (line 60) | cleanup() { FILE: plugins/plugin-babel/worker.js function transformFileAsync (line 4) | async function transformFileAsync(path, options) { FILE: plugins/plugin-build-script/plugin.js function buildScriptPlugin (line 5) | function buildScriptPlugin(snowpackConfig, {input, output, cmd}) { FILE: plugins/plugin-dotenv/test/plugin.test.js function execPlugin (line 7) | function execPlugin(nodeEnv, params = null) { constant NODE_ENV_LIST (line 20) | const NODE_ENV_LIST = [undefined, 'development', 'test', 'production']; FILE: plugins/plugin-optimize/lib/css.js function hasCSSImport (line 7) | function hasCSSImport(files) { function transformCSSProxy (line 27) | function transformCSSProxy(file, originalCode) { function buildImportCSS (line 83) | function buildImportCSS(manifest, minifyCSS) { FILE: plugins/plugin-optimize/lib/html.js function scanHTML (line 12) | async function scanHTML(htmlFiles, buildDirectory) { function preloadJS (line 78) | function preloadJS({code, file, preloadCSS, rootDir}) { FILE: plugins/plugin-optimize/lib/js.js function scanJS (line 11) | function scanJS({file, rootDir, scannedFiles, importList}) { FILE: plugins/plugin-optimize/plugin.js function optimizeFile (line 31) | async function optimizeFile({file, preloadCSS, target, rootDir}) { method optimize (line 110) | async optimize({buildDirectory}) { FILE: plugins/plugin-optimize/test/serializer.js function getSnowpackPluginOutputSnapshotSerializer (line 17) | function getSnowpackPluginOutputSnapshotSerializer(basePath) { function toPathAndStringContent (line 49) | function toPathAndStringContent(basePath, [path, content]) { function toSingleArgument (line 58) | function toSingleArgument([output, ...args]) { function toNoralizedByteSize (line 61) | function toNoralizedByteSize(output) { function removeColors (line 65) | function removeColors(output) { function isLocal (line 69) | function isLocal(call) { FILE: plugins/plugin-optimize/test/stubs/minimal/esm_example.js function esm_example (line 1) | function esm_example() { FILE: plugins/plugin-optimize/test/stubs/minimal/index.js function n (line 6) | function n(o) { FILE: plugins/plugin-optimize/test/stubs/minimal/target-es2018.js function testTarget (line 1) | function testTarget() { FILE: plugins/plugin-optimize/util.js function log (line 12) | function log(msg, level = 'log') { function isRemoteModule (line 18) | function isRemoteModule(specifier) { function projectURL (line 28) | function projectURL(url, buildDirectory) { function removeLeadingSlash (line 34) | function removeLeadingSlash(path) { function formatManifest (line 40) | function formatManifest({manifest, buildDirectory, generatedFiles, prelo... FILE: plugins/plugin-postcss/plugin.js method transform (line 26) | async transform({id, srcPath, fileExt, contents}) { method onChange (line 69) | onChange({filePath}) { method cleanup (line 80) | cleanup() { FILE: plugins/plugin-postcss/test/fixtures/from/postcss.config.js function pluginFrom (line 1) | function pluginFrom() { FILE: plugins/plugin-postcss/worker.js function transformAsync (line 11) | async function transformAsync(css, {filepath, config, cwd, map}) { FILE: plugins/plugin-react-refresh/plugin.js function transformHtml (line 15) | function transformHtml(contents) { constant IS_FAST_REFRESH_ENABLED (line 34) | const IS_FAST_REFRESH_ENABLED = /\$RefreshReg\$\(/; function transformJs (line 35) | async function transformJs(contents, id, cwd, babelConfig) { method transform (line 101) | transform({contents, fileExt, id, isDev, isHmrEnabled, isSSR}) { FILE: plugins/plugin-react-refresh/test/plugin.test.js function mockBabel (line 31) | function mockBabel() { function testPluginInstance (line 62) | async function testPluginInstance(pluginInstance, overrides = {}) { FILE: plugins/plugin-react-refresh/test/stubs/stub.js function App (line 2) | function App() { FILE: plugins/plugin-run-script/plugin.js constant CLEAR_SEQUENCES (line 4) | const CLEAR_SEQUENCES = ['\x1Bc', '\x1B[2J\x1B[0;0f']; function runScriptPlugin (line 6) | function runScriptPlugin(snowpackConfig, {name, cmd, watch, output}) { FILE: plugins/plugin-sass/plugin.js constant IMPORT_REGEX (line 7) | const IMPORT_REGEX = /\@(use|import|forward)\s*['"](.*?)['"]/g; constant PARTIAL_REGEX (line 8) | const PARTIAL_REGEX = /([\/\\])_(.+)(?![\/\\])/; function stripFileExtension (line 10) | function stripFileExtension(filename) { function findChildPartials (line 14) | function findChildPartials(pathName, fileName, fileExt) { function scanSassImports (line 37) | function scanSassImports(fileContents, filePath, fileExt, partials = new... function addImportsToMap (line 87) | function addImportsToMap(filePath, sassImport) { method _markImportersAsChanged (line 106) | _markImportersAsChanged(filePath) { method onChange (line 120) | onChange({filePath}) { method load (line 137) | async load({filePath, isDev}) { FILE: plugins/plugin-sass/test/plugin-mocked.test.js constant MOCK_CONFIG (line 9) | const MOCK_CONFIG = null; constant MOCK_LOAD (line 10) | const MOCK_LOAD = {filePath: path.join(__dirname, 'fixtures', 'scss', 'A... FILE: plugins/plugin-svelte/plugin.js function addImportsToMap (line 95) | function addImportsToMap(filePath, imp) { method _markImportersAsChanged (line 129) | _markImportersAsChanged(filePath) { method onChange (line 143) | onChange({filePath}) { method load (line 147) | async load({filePath, isHmrEnabled, isSSR, isPackage}) { FILE: plugins/plugin-svelte/test/plugin.test.js constant DEFAULT_CONFIG (line 10) | let DEFAULT_CONFIG; FILE: plugins/plugin-typescript/plugin.js function typescriptPlugin (line 4) | function typescriptPlugin(snowpackConfig, {tsc, args} = {}) { FILE: plugins/plugin-vue/plugin-tsx-jsx.js method load (line 11) | async load({filePath, fileExt}) { FILE: plugins/plugin-vue/plugin.js function displayError (line 14) | function displayError({contents, filePath, error}) { method load (line 65) | async load({filePath, isSSR}) { FILE: plugins/plugin-vue/test/stubs/JsxContent.jsx method setup (line 5) | setup() { FILE: plugins/plugin-vue/test/stubs/TsContent.ts method setup (line 5) | setup() { FILE: plugins/plugin-vue/test/stubs/TsxContent.tsx method setup (line 5) | setup() { FILE: plugins/plugin-webpack/plugin.js function insertBefore (line 15) | function insertBefore(newNode, existingNode) { function ensureDirectoryExists (line 19) | function ensureDirectoryExists(dir) { function parseHTMLFiles (line 25) | function parseHTMLFiles({buildDirectory}) { function emitHTMLFiles (line 66) | function emitHTMLFiles({doms, jsEntries, stats, baseUrl, outputDirectory... function getSplitChunksConfig (line 118) | function getSplitChunksConfig({numEntries}) { function getPresetEnvTargets (line 201) | function getPresetEnvTargets({browserslist}) { method optimize (line 261) | async optimize({buildDirectory, log}) { FILE: plugins/plugin-webpack/plugins/import-meta-fix.js function toBrowserPath (line 27) | function toBrowserPath(filePath, _path = path) { FILE: plugins/plugin-webpack/test/plugin.test.js constant STUBS_DIR (line 7) | const STUBS_DIR = path.join(__dirname, 'stubs/minimal/'); constant IGNORED_STUBS_DIR (line 8) | const IGNORED_STUBS_DIR = path.join(__dirname, 'stubs/minimal_ignore/'); constant MULTIPLE_DIR (line 10) | const MULTIPLE_DIR = path.join(__dirname, 'stubs/multiple-entrypoints/'); constant IGNORED_MULTIPLE_DIR (line 11) | const IGNORED_MULTIPLE_DIR = path.join(__dirname, 'stubs/multiple-entryp... FILE: plugins/plugin-webpack/test/readFilesSync.js function readFilesSync (line 4) | function readFilesSync(dir) { function normalizeContent (line 23) | function normalizeContent(content) { FILE: plugins/web-test-runner-plugin/plugin.js function isTestRunnerFile (line 9) | function isTestRunnerFile(url) { method serverStart (line 18) | async serverStart({fileWatcher}) { method serverStop (line 32) | async serverStop() { method serve (line 35) | async serve({request}) { method transformImport (line 47) | transformImport({source}) { FILE: scripts/release.cjs function formatDate (line 5) | function formatDate() { FILE: skypack/index.esm.mjs constant SKYPACK_ORIGIN (line 9) | const SKYPACK_ORIGIN = Pkg.SKYPACK_ORIGIN; FILE: skypack/src/index.ts constant SKYPACK_ORIGIN (line 12) | const SKYPACK_ORIGIN = 'https://cdn.skypack.dev'; function parseRawPackageImport (line 14) | function parseRawPackageImport(spec: string): [string, string | null] { class SkypackSDK (line 24) | class SkypackSDK { method constructor (line 27) | constructor(options: {origin?: string} = {}) { method generateImportMap (line 31) | async generateImportMap( method fetch (line 82) | async fetch( method buildNewPackage (line 157) | async buildNewPackage( method lookupBySpecifier (line 178) | async lookupBySpecifier( method installTypes (line 210) | async installTypes(spec: string, semverString?: string, dir?: string) { type ResourceCacheMetadata (line 258) | interface ResourceCacheMetadata { type BuildNewPackageResponse (line 264) | type BuildNewPackageResponse = type LookupBySpecifierResponse (line 271) | type LookupBySpecifierResponse = function clearCache (line 284) | async function clearCache() { FILE: skypack/src/rollup-plugin-remote-cdn.ts function rollupPluginSkypack (line 14) | function rollupPluginSkypack({sdk, logger}: {sdk: SkypackSDK; logger: Ab... FILE: skypack/src/util.ts type AbstractLogger (line 8) | interface AbstractLogger { type ImportMap (line 14) | interface ImportMap { constant GLOBAL_CACHE_DIR (line 18) | const GLOBAL_CACHE_DIR = globalCacheDir('skypack'); constant RESOURCE_CACHE (line 19) | const RESOURCE_CACHE = path.join(GLOBAL_CACHE_DIR, 'pkg-cache-3.0'); constant HAS_CDN_HASH_REGEX (line 20) | const HAS_CDN_HASH_REGEX = /\-[a-zA-Z0-9]{16,}/; constant BUILD_CACHE (line 27) | const BUILD_CACHE = path.join(GLOBAL_CACHE_DIR, 'build-cache-2.7'); constant LOCKFILE_HASH_FILE (line 29) | const LOCKFILE_HASH_FILE = '.hash'; constant HTML_JS_REGEX (line 32) | const HTML_JS_REGEX = /()(.*?)<\/script>/gms; constant CSS_REGEX (line 33) | const CSS_REGEX = /@import\s*['"](.*)['"];/gs; constant SVELTE_VUE_REGEX (line 34) | const SVELTE_VUE_REGEX = /(]*>)(.*?)<\/script>/gms; constant URL_HAS_PROTOCOL_REGEX (line 36) | const URL_HAS_PROTOCOL_REGEX = /^(\w+:)?\/\//; constant UTF8_FORMATS (line 38) | const UTF8_FORMATS = ['.css', '.html', '.js', '.map', '.mjs', '.json', '... function getEncodingType (line 39) | function getEncodingType(ext: string): 'utf-8' | undefined { function readLockfile (line 43) | async function readLockfile(cwd: string): Promise { function writeLockfile (line 56) | async function writeLockfile(loc: string, importMap: ImportMap): Promise... function isTruthy (line 64) | function isTruthy(item: T | false | null | undefined): item is T { function parsePackageImportSpecifier (line 69) | function parsePackageImportSpecifier(imp: string): [string, string | nul... function resolveDependencyManifest (line 87) | function resolveDependencyManifest(dep: string, cwd: string): [string | ... constant MISSING_PLUGIN_SUGGESTIONS (line 132) | const MISSING_PLUGIN_SUGGESTIONS: {[ext: string]: string} = { function checkLockfileHash (line 139) | async function checkLockfileHash(dir: string) { function updateLockfileHash (line 150) | async function updateLockfileHash(dir: string) { function findMatchingAliasEntry (line 164) | function findMatchingAliasEntry( function isPackageAliasEntry (line 198) | function isPackageAliasEntry(val: string): boolean { function getExt (line 203) | function getExt(fileName: string) { function replaceExt (line 213) | function replaceExt(fileName: string, oldExt: string, newExt: string): s... function sanitizePackageName (line 223) | function sanitizePackageName(filepath: string): string { function cssSourceMappingURL (line 232) | function cssSourceMappingURL(code: string, sourceMappingURL: string) { function jsSourceMappingURL (line 237) | function jsSourceMappingURL(code: string, sourceMappingURL: string) { function removeLeadingSlash (line 241) | function removeLeadingSlash(path: string) { function removeTrailingSlash (line 245) | function removeTrailingSlash(path: string) { function addLeadingSlash (line 249) | function addLeadingSlash(path: string) { function addTrailingSlash (line 253) | function addTrailingSlash(path: string) { FILE: snowpack/assets/hmr-client.js function log (line 8) | function log(...args) { function reload (line 11) | function reload() { function clearErrorOverlay (line 18) | function clearErrorOverlay() { function createNewErrorOverlay (line 25) | function createNewErrorOverlay(data) { constant SOCKET_MESSAGE_QUEUE (line 37) | let SOCKET_MESSAGE_QUEUE = []; function _sendSocketMessage (line 38) | function _sendSocketMessage(msg) { function sendSocketMessage (line 41) | function sendSocketMessage(msg) { constant REGISTERED_MODULES (line 63) | const REGISTERED_MODULES = {}; class HotModuleState (line 64) | class HotModuleState { method constructor (line 65) | constructor(id) { method lock (line 74) | lock() { method dispose (line 77) | dispose(callback) { method invalidate (line 80) | invalidate() { method decline (line 83) | decline() { method accept (line 86) | accept(_deps, callback = true) { function createHotContext (line 116) | function createHotContext(fullUrl) { function runCssStyleAccept (line 130) | async function runCssStyleAccept({url: id}) { function runJsModuleAccept (line 154) | async function runJsModuleAccept({url: id, bubbled}) { function runModuleDispose (line 175) | async function runModuleDispose(id) { FILE: snowpack/assets/hmr-error-overlay.js constant ERROR_OVERLAY_TEMPLATE (line 35) | const ERROR_OVERLAY_TEMPLATE = ` method constructor (line 896) | constructor({title, errorMessage, fileLoc, errorStackTrace}) { method connectedCallback (line 907) | connectedCallback() { method disconnectedCallback (line 925) | disconnectedCallback() { method close (line 932) | close() { method _watchEscape (line 936) | _watchEscape(event) { FILE: snowpack/assets/require-or-import.js constant NATIVE_REQUIRE (line 3) | const NATIVE_REQUIRE = eval('require'); FILE: snowpack/src/build/build-import-proxy.ts constant SRI_CLIENT_HMR_SNOWPACK (line 15) | const SRI_CLIENT_HMR_SNOWPACK = generateSRI(Buffer.from(HMR_CLIENT_CODE)); constant SRI_ERROR_HMR_SNOWPACK (line 16) | const SRI_ERROR_HMR_SNOWPACK = generateSRI(Buffer.from(HMR_OVERLAY_CODE)); function getMetaUrlPath (line 20) | function getMetaUrlPath(urlPath: string, config: SnowpackConfig): string { function wrapImportMeta (line 24) | function wrapImportMeta({ function wrapHtmlResponse (line 66) | function wrapHtmlResponse({ function generateJsonImportProxy (line 135) | function generateJsonImportProxy({ function generateCssImportProxy (line 149) | function generateCssImportProxy({ function createImportGlobValue (line 179) | function createImportGlobValue(importGlob, i: number): {value: string; i... function transformGlobImports (line 206) | async function transformGlobImports({ function generateCssModuleImportProxy (line 236) | async function generateCssModuleImportProxy({ function generateDefaultImportProxy (line 277) | function generateDefaultImportProxy(url: string) { function wrapImportProxy (line 281) | async function wrapImportProxy({ function generateEnvModule (line 307) | function generateEnvModule({ constant PUBLIC_ENV_REGEX (line 331) | const PUBLIC_ENV_REGEX = /^SNOWPACK_PUBLIC_.+/; function getSnowpackPublicEnvVariables (line 332) | function getSnowpackPublicEnvVariables() { FILE: snowpack/src/build/build-pipeline.ts type BuildFileOptions (line 10) | interface BuildFileOptions { function runPipelineLoadStep (line 27) | async function runPipelineLoadStep( function composeSourceMaps (line 129) | async function composeSourceMaps( function runPipelineTransformStep (line 155) | async function runPipelineTransformStep( function runPipelineOptimizeStep (line 227) | async function runPipelineOptimizeStep( function runPipelineCleanupStep (line 254) | async function runPipelineCleanupStep({plugins}: SnowpackConfig) { function buildFile (line 264) | async function buildFile( FILE: snowpack/src/build/file-builder.ts class FileBuilder (line 46) | class FileBuilder { method constructor (line 60) | constructor({ method verifyRequestFromBuild (line 88) | private verifyRequestFromBuild(type: string): SnowpackBuiltFile | unde... method resolveImports (line 101) | async resolveImports( method build (line 259) | async build(isStatic: boolean) { method finalizeResult (line 293) | private finalizeResult(type: string, content: string): string { method getResult (line 325) | getResult(type: string): string | Buffer | undefined { method getSourceMap (line 333) | getSourceMap(type: string): string | undefined { method getProxy (line 337) | async getProxy(_url: string, type: string) { method writeToDisk (line 343) | async writeToDisk(dir: string, results: SnowpackBuildResultFileManifes... FILE: snowpack/src/build/file-urls.ts function getUrlsForFileMount (line 10) | function getUrlsForFileMount({ function getBuiltFileUrls (line 32) | function getBuiltFileUrls(filepath: string, config: SnowpackConfig): str... function getMountEntryForFile (line 57) | function getMountEntryForFile( function getUrlsForFile (line 79) | function getUrlsForFile(fileLoc: string, config: SnowpackConfig): undefi... FILE: snowpack/src/build/import-css.ts function cssModules (line 8) | async function cssModules({ function cssModuleJSON (line 37) | function cssModuleJSON(url: string): string { function needsCSSModules (line 42) | function needsCSSModules(url: string): boolean { FILE: snowpack/src/build/import-resolver.ts function getFsStat (line 17) | function getFsStat(importedFileOnDisk: string): fs.Stats | false { function resolveSourceSpecifier (line 27) | function resolveSourceSpecifier( function createImportResolver (line 94) | function createImportResolver({fileLoc, config}: {fileLoc: string; confi... function toPath (line 126) | function toPath(url: string) { function createImportGlobResolver (line 135) | function createImportGlobResolver({ FILE: snowpack/src/build/import-sri.ts type SupportedSRIAlgorithm (line 3) | type SupportedSRIAlgorithm = 'sha512' | 'sha384' | 'sha256'; constant DEFAULT_CRYPTO_HASH (line 4) | const DEFAULT_CRYPTO_HASH = 'sha384'; constant EMPTY_BUFFER (line 5) | const EMPTY_BUFFER = Buffer.from(''); FILE: snowpack/src/build/optimize.ts type ScannedHtmlEntrypoint (line 21) | interface ScannedHtmlEntrypoint { type SnowpackMetaManifest (line 30) | type SnowpackMetaManifest = Omit & Partial<... constant FAKE_BUILD_DIRECTORY (line 35) | const FAKE_BUILD_DIRECTORY = path.join(process.cwd(), '~~bundle~~'); constant FAKE_BUILD_DIRECTORY_REGEX (line 36) | const FAKE_BUILD_DIRECTORY_REGEX = /.*\~\~bundle\~\~[\\\/]/; function collectDeepImports (line 39) | function collectDeepImports( function scanHtmlEntrypoints (line 69) | async function scanHtmlEntrypoints(htmlFiles: string[]): Promise<(Scanne... function extractBaseUrl (line 89) | async function extractBaseUrl(htmlData: ScannedHtmlEntrypoint, baseUrl: ... function restitchBaseUrl (line 114) | async function restitchBaseUrl(htmlData: ScannedHtmlEntrypoint, baseUrl:... function extractInlineScripts (line 134) | async function extractInlineScripts(htmlData: ScannedHtmlEntrypoint): Pr... function restitchInlineScripts (line 163) | async function restitchInlineScripts(htmlData: ScannedHtmlEntrypoint): P... function addNewBundledCss (line 191) | function addNewBundledCss( function preloadEntrypoint (line 233) | function preloadEntrypoint( function getEntrypoints (line 261) | async function getEntrypoints( function resolveEntrypoints (line 282) | async function resolveEntrypoints( function processEntrypoints (line 331) | async function processEntrypoints( function runEsbuildOnBuildDirectory (line 390) | async function runEsbuildOnBuildDirectory( function runBuiltInOptimize (line 451) | async function runBuiltInOptimize(config: SnowpackConfig) { FILE: snowpack/src/build/process.ts type BuildState (line 27) | interface BuildState { function getIsHmrEnabled (line 50) | function getIsHmrEnabled(config: SnowpackConfig) { function removeEmptyFolders (line 57) | async function removeEmptyFolders(directoryLoc: string): Promise { function installOptimizedDependencies (line 77) | async function installOptimizedDependencies( function createBuildState (line 107) | async function createBuildState(commandOptions: CommandOptions): Promise... function maybeCleanBuildDirectory (line 141) | function maybeCleanBuildDirectory(state: BuildState) { function addBuildFiles (line 149) | async function addBuildFiles(state: BuildState, files: string[]) { function addBuildFilesFromMountpoints (line 173) | async function addBuildFilesFromMountpoints(state: BuildState): Promise<... type FlushLoadOptions (line 194) | type FlushLoadOptions = LoadUrlOptions & {encoding?: undefined}; function flushFileQueue (line 196) | async function flushFileQueue( function buildFiles (line 264) | async function buildFiles(state: BuildState) { function buildDependencies (line 278) | async function buildDependencies(state: BuildState) { function writeToDisk (line 302) | async function writeToDisk(state: BuildState) { function startWatch (line 322) | async function startWatch(state: BuildState) { function optimize (line 355) | async function optimize(state: BuildState) { function postBuildCleanup (line 373) | async function postBuildCleanup(state: BuildState) { FILE: snowpack/src/commands/add-rm.ts function pkgInfoFromString (line 15) | function pkgInfoFromString(str) { function addCommand (line 21) | async function addCommand(addValue: string, commandOptions: CommandOptio... function rmCommand (line 65) | async function rmCommand(addValue: string, commandOptions: CommandOption... FILE: snowpack/src/commands/build.ts function build (line 15) | async function build(commandOptions: CommandOptions): Promise { function startDashboard (line 56) | function startDashboard(bus: EventEmitter, _config: SnowpackConfig) { FILE: snowpack/src/commands/prepare.ts function command (line 6) | async function command(commandOptions: CommandOptions) { FILE: snowpack/src/config.ts constant CONFIG_NAME (line 34) | const CONFIG_NAME = 'snowpack'; constant ALWAYS_EXCLUDE (line 35) | const ALWAYS_EXCLUDE = ['**/_*.{sass,scss}', '**.d.ts']; constant DEFAULT_PROJECT_CACHE_DIR (line 36) | const DEFAULT_PROJECT_CACHE_DIR = constant DEFAULT_ROOT (line 44) | const DEFAULT_ROOT = process.cwd(); constant DEFAULT_CONFIG (line 45) | const DEFAULT_CONFIG: SnowpackUserConfig = { constant DEFAULT_PACKAGES_LOCAL_CONFIG (line 79) | const DEFAULT_PACKAGES_LOCAL_CONFIG: PackageOptionsLocal = { constant REMOTE_PACKAGE_ORIGIN (line 86) | const REMOTE_PACKAGE_ORIGIN = 'https://pkg.snowpack.dev'; constant DEFAULT_PACKAGES_REMOTE_CONFIG (line 88) | const DEFAULT_PACKAGES_REMOTE_CONFIG: PackageOptionsRemote = { function expandCliFlags (line 236) | function expandCliFlags(flags: CLIFlags): SnowpackUserConfig { function loadPlugins (line 298) | function loadPlugins(config: SnowpackConfig): { function normalizeMount (line 375) | function normalizeMount(config: SnowpackConfig) { function normalizeRoutes (line 413) | function normalizeRoutes(routes: RouteConfigObject[]): RouteConfigObject... function normalizeConfig (line 435) | function normalizeConfig(_config: SnowpackUserConfig): SnowpackConfig { function handleConfigError (line 506) | function handleConfigError(msg: string) { function handleValidationErrors (line 511) | function handleValidationErrors(filepath: string, err: ConfigValidationE... function handleDeprecatedConfigError (line 518) | function handleDeprecatedConfigError(mainMsg: string, ...msgs: string[]) { function valdiateDeprecatedConfig (line 524) | function valdiateDeprecatedConfig(rawConfig: any) { function validatePlugin (line 603) | function validatePlugin(plugin: SnowpackPlugin) { function validatePluginLoadResult (line 623) | function validatePluginLoadResult( function getConfigBasePath (line 655) | function getConfigBasePath(configFileLoc: string | undefined, configRoot... function resolveRelativeConfigAlias (line 663) | function resolveRelativeConfigAlias( function resolveRelativeConfigMount (line 681) | function resolveRelativeConfigMount( function resolveRelativeConfig (line 692) | function resolveRelativeConfig(config: SnowpackUserConfig, configBase: s... class ConfigValidationError (line 728) | class ConfigValidationError extends Error { method constructor (line 729) | constructor(errors: (Error | string)[]) { function validateConfig (line 734) | function validateConfig(config: SnowpackConfig) { function createConfiguration (line 742) | function createConfiguration(config: SnowpackUserConfig = {}): SnowpackC... function loadConfigurationFile (line 779) | async function loadConfigurationFile( function loadConfiguration (line 789) | async function loadConfiguration( FILE: snowpack/src/dev/hmr.ts function startHmrEngine (line 10) | function startHmrEngine( FILE: snowpack/src/hmr-server-engine.ts type Dependency (line 7) | interface Dependency { type HMRMessage (line 16) | type HMRMessage = constant DEFAULT_CONNECT_DELAY (line 27) | const DEFAULT_CONNECT_DELAY = 2000; constant DEFAULT_PORT (line 28) | const DEFAULT_PORT = 12321; type EsmHmrEngineOptions (line 30) | interface EsmHmrEngineOptions { class EsmHmrEngine (line 35) | class EsmHmrEngine { method constructor (line 46) | constructor(options: EsmHmrEngineOptions) { method registerListener (line 80) | registerListener(client: WebSocket) { method createEntry (line 95) | createEntry(sourceUrl: string) { method getEntry (line 108) | getEntry(sourceUrl: string, createIfNotFound = false) { method setEntry (line 119) | setEntry(sourceUrl: string, imports: string[], isHmrEnabled = false) { method removeRelationship (line 132) | removeRelationship(sourceUrl: string, importUrl: string) { method addRelationship (line 139) | addRelationship(sourceUrl: string, importUrl: string) { method markEntryForReplacement (line 148) | markEntryForReplacement(entry: Dependency, state: boolean) { method broadcastMessage (line 157) | broadcastMessage(data: HMRMessage) { method dispatchBatch (line 189) | dispatchBatch() { method dispatchMessage (line 204) | private dispatchMessage(messageBatch: HMRMessage[], singleClient?: Web... method connectClient (line 225) | connectClient(client: WebSocket) { method disconnectClient (line 229) | disconnectClient(client: WebSocket) { method disconnectAllClients (line 234) | disconnectAllClients() { method stop (line 240) | stop(): Promise { FILE: snowpack/src/index.ts function getUrlForFile (line 26) | function getUrlForFile(fileLoc: string, config: SnowpackConfig) { function preparePackages (line 30) | function preparePackages({config}: CommandOptions) { function startDevServer (line 36) | function startDevServer() { function buildProject (line 39) | function buildProject() { function loadAndValidateConfig (line 42) | function loadAndValidateConfig() { function printHelp (line 48) | function printHelp() { function cli (line 77) | async function cli(args: string[]) { FILE: snowpack/src/lexer-util.ts function checkIdent (line 1) | function checkIdent(code: string, pos: number, text: string): boolean { function isEOL (line 5) | function isEOL(code: string, pos: number): boolean { function isBrOrWsOrPunctuatorNotDot (line 37) | function isBrOrWsOrPunctuatorNotDot(ch: string): boolean { function isPunctuator (line 42) | function isPunctuator(ch: string): boolean { function keywordStart (line 58) | function keywordStart(source: string, pos: number) { FILE: snowpack/src/logger.ts type LogRecord (line 4) | interface LogRecord { class SnowpackLogger (line 18) | class SnowpackLogger { method log (line 40) | private log({ method debug (line 92) | public debug(message: string, options?: LoggerOptions): void { method info (line 98) | public info(message: string, options?: LoggerOptions): void { method warn (line 104) | public warn(message: string, options?: LoggerOptions): void { method error (line 110) | public error(message: string, options?: LoggerOptions): void { method getHistory (line 116) | public getHistory(): ReadonlyArray { method on (line 121) | public on(event: LoggerEvent, callback: (message: string) => void) { FILE: snowpack/src/plugins/plugin-esbuild.ts constant IS_PREACT (line 8) | const IS_PREACT = /from\s+['"]preact['"]/; function checkIsPreact (line 9) | function checkIsPreact(contents: string) { type Loader (line 13) | type Loader = 'js' | 'jsx' | 'ts' | 'tsx'; function getLoader (line 15) | function getLoader(filePath: string): {loader: Loader; isJSX: boolean} { function esbuildPlugin (line 22) | function esbuildPlugin(config: SnowpackConfig, {input}: {input: string[]... FILE: snowpack/src/rewrite-imports.ts constant WEBPACK_MAGIC_COMMENT_REGEX (line 6) | const WEBPACK_MAGIC_COMMENT_REGEX = /\/\*[\s\S]*?\*\//g; type RewriteInstruction (line 8) | interface RewriteInstruction { function applyRewrites (line 14) | function applyRewrites(source: string, rewrites: RewriteInstruction[]) { function scanCodeImportsExports (line 27) | async function scanCodeImportsExports(code: string): Promise { function transformEsmImports (line 43) | async function transformEsmImports( function transformHtmlImports (line 71) | async function transformHtmlImports( function transformCssImports (line 105) | async function transformCssImports( function transformFileImports (line 126) | async function transformFileImports( function transformAddMissingDefaultExport (line 144) | async function transformAddMissingDefaultExport(_code: string) { FILE: snowpack/src/scan-import-glob.ts type ImportGlobStatement (line 3) | interface ImportGlobStatement { type ScannerState (line 10) | const enum ScannerState { constant IMPORT_META_GLOB_REGEX (line 25) | const IMPORT_META_GLOB_REGEX = /import\s*\.\s*meta\s*\.\s*glob/; function scanImportGlob (line 27) | function scanImportGlob(code: string) { function isInQuote (line 142) | function isInQuote(state: ScannerState): boolean { function isInComment (line 150) | function isInComment(state: ScannerState): boolean { FILE: snowpack/src/scan-imports.ts constant BARE_SPECIFIER_REGEX (line 28) | const BARE_SPECIFIER_REGEX = /^[@\w](?!.*(:\/\/))/; constant ESM_IMPORT_REGEX (line 30) | const ESM_IMPORT_REGEX = constant ESM_DYNAMIC_IMPORT_REGEX (line 32) | const ESM_DYNAMIC_IMPORT_REGEX = /(? = new Set([ function isPackageCJS (line 59) | function isPackageCJS(manifest: any): boolean { function getRootPackageDirectory (line 72) | function getRootPackageDirectory(loc: string) { function getNpmConnectionOptions (line 90) | function getNpmConnectionOptions(source: string | object): object { type PackageImportData (line 100) | type PackageImportData = { class PackageSourceLocal (line 108) | class PackageSourceLocal implements PackageSource { method constructor (line 122) | constructor(config: SnowpackConfig) { method setupCacheDirectory (line 142) | private async setupCacheDirectory() { method setupPackageRootDirectory (line 173) | private async setupPackageRootDirectory(installTargets: InstallTarget[... method prepare (line 207) | async prepare() { method prepareSingleFile (line 256) | async prepareSingleFile(fileLoc: string) { method load (line 276) | async load(id: string, {isSSR}: {isSSR?: boolean} = {}) { method modifyBuildInstallOptions (line 352) | async modifyBuildInstallOptions(installOptions, installTargets) { method resolveArbNode (line 378) | private async resolveArbNode(packageName: string, source: string): Pro... method installPackage (line 407) | private async installPackage(packageName: string, _source?: string): P... method buildPackageImport (line 431) | private async buildPackageImport(spec: string, _source?: string, logLi... method resolvePackageImport (line 694) | async resolvePackageImport( method clearCache (line 777) | clearCache() { method getCacheFolder (line 781) | getCacheFolder() { method isExternal (line 785) | private isExternal(packageName: string, specifier: string): boolean { FILE: snowpack/src/sources/remote.ts function logFetching (line 18) | function logFetching(origin: string, packageName: string, packageSemver:... class PackageSourceRemote (line 38) | class PackageSourceRemote implements PackageSource { method constructor (line 43) | constructor(config: SnowpackConfig) { method prepare (line 48) | async prepare() { method prepareSingleFile (line 79) | async prepareSingleFile() { method modifyBuildInstallOptions (line 83) | async modifyBuildInstallOptions(installOptions) { method load (line 108) | async load(spec: string) { method resolvePackageImport (line 176) | async resolvePackageImport(spec: string) { method clearCache (line 180) | static clearCache() { method clearCache (line 185) | clearCache() { method getCacheFolder (line 189) | getCacheFolder() { FILE: snowpack/src/sources/util.ts constant GLOBAL_CACHE_DIR (line 8) | const GLOBAL_CACHE_DIR = globalCacheDir('snowpack'); function clearCache (line 10) | async function clearCache() { function getPackageSource (line 25) | function getPackageSource(config: SnowpackConfig): PackageSource { FILE: snowpack/src/ssr-loader/index.ts type ModuleInstance (line 8) | interface ModuleInstance { type ModuleInitializer (line 13) | type ModuleInitializer = () => Promise; function moduleInit (line 15) | function moduleInit(fn: ModuleInitializer) { function createLoader (line 23) | function createLoader({config, load}: ServerRuntimeConfig): ServerRuntime { FILE: snowpack/src/ssr-loader/sourcemaps.ts function get_sourcemap_url (line 4) | function get_sourcemap_url(contents) { function replace_async (line 13) | async function replace_async(str, regex, asyncFn) { function sourcemap_stacktrace (line 25) | async function sourcemap_stacktrace(stack, load_contents) { FILE: snowpack/src/ssr-loader/transform.ts function transform (line 7) | function transform(data) { FILE: snowpack/src/types.ts type RawSourceMap (line 10) | interface RawSourceMap { type DeepPartial (line 20) | type DeepPartial = { type ServerRuntimeConfig (line 28) | interface ServerRuntimeConfig { type ServerRuntime (line 32) | interface ServerRuntime { type ServerRuntimeModule (line 37) | interface ServerRuntimeModule { type LoadResult (line 42) | interface LoadResult { type OnFileChangeCallback (line 50) | type OnFileChangeCallback = ({filePath: string}) => any; type LoadUrlOptions (line 51) | interface LoadUrlOptions { type SnowpackDevServer (line 60) | interface SnowpackDevServer { type SnowpackBuildResultFileManifest (line 94) | type SnowpackBuildResultFileManifest = Record< type SnowpackBuildResult (line 99) | interface SnowpackBuildResult { type SnowpackBuiltFile (line 105) | type SnowpackBuiltFile = { type SnowpackBuildMap (line 110) | type SnowpackBuildMap = Record; type SnowpackSourceFile (line 113) | interface SnowpackSourceFile { type PluginLoadOptions (line 124) | interface PluginLoadOptions { type PluginTransformOptions (line 139) | interface PluginTransformOptions { type PluginRunOptions (line 158) | interface PluginRunOptions { type PluginLoadResult (line 163) | type PluginLoadResult = SnowpackBuildMap; type PluginTransformResult (line 165) | type PluginTransformResult = {contents: string; map: string | RawSourceM... type PluginOptimizeOptions (line 167) | interface PluginOptimizeOptions { type SnowpackPlugin (line 171) | interface SnowpackPlugin { type SnowpackPluginFactory (line 209) | type SnowpackPluginFactory = ( type MountEntry (line 214) | type MountEntry = { type OptimizeOptions (line 221) | interface OptimizeOptions { type RouteConfigObject (line 234) | interface RouteConfigObject { type PackageOptionsLocal (line 242) | interface PackageOptionsLocal type PackageOptionsRemote (line 252) | interface PackageOptionsRemote { type SnowpackConfig (line 262) | interface SnowpackConfig { type SnowpackUserConfig (line 316) | type SnowpackUserConfig = { type CLIFlags (line 338) | interface CLIFlags { type ImportMap (line 352) | interface ImportMap { type LockfileManifest (line 356) | interface LockfileManifest { type CommandOptions (line 361) | interface CommandOptions { type LoggerLevel (line 366) | type LoggerLevel = 'debug' | 'info' | 'warn' | 'error' | 'silent'; type LoggerEvent (line 367) | type LoggerEvent = 'debug' | 'info' | 'warn' | 'error'; type LoggerOptions (line 368) | interface LoggerOptions { type PackageSource (line 376) | interface PackageSource { type ScannableExt (line 410) | type ScannableExt = FILE: snowpack/src/util.ts constant IS_DOTFILE_REGEX (line 22) | const IS_DOTFILE_REGEX = /\/\.[^\/]+$/; constant LOCKFILE_NAME (line 24) | const LOCKFILE_NAME = 'snowpack.deps.json'; constant NATIVE_REQUIRE (line 27) | const NATIVE_REQUIRE = eval('require'); constant REQUIRE_OR_IMPORT (line 31) | const REQUIRE_OR_IMPORT: ( function createRemotePackageSDK (line 36) | function createRemotePackageSDK(config: SnowpackConfig) { constant BUILD_CACHE (line 55) | const BUILD_CACHE = path.join(GLOBAL_CACHE_DIR, 'build-cache-2.7'); constant LOCKFILE_HASH_FILE (line 56) | const LOCKFILE_HASH_FILE = '.hash'; constant HTML_JS_REGEX (line 59) | const HTML_JS_REGEX = /(]*?type="module".*?>)(.*?)<\/script>/g... constant HTML_STYLE_REGEX (line 60) | const HTML_STYLE_REGEX = /()(.*?)<\/style>/gims; constant CSS_REGEX (line 61) | const CSS_REGEX = /@import\s*['"](.*?)['"];/gs; constant SVELTE_VUE_REGEX (line 62) | const SVELTE_VUE_REGEX = /(]*>)(.*?)<\/script>/gims; constant ASTRO_REGEX (line 63) | const ASTRO_REGEX = /---(.*?)---/gims; function getCacheKey (line 65) | function getCacheKey(fileLoc: string, {isSSR, mode}) { type Awaited (line 69) | type Awaited = T extends PromiseLike ? Awaited : T; function deleteFromBuildSafe (line 74) | function deleteFromBuildSafe(dir: string, config: SnowpackConfig) { function readFile (line 89) | async function readFile(filepath: string): Promise { function readLockfile (line 104) | async function readLockfile(cwd: string): Promise(originalObject: Record): Record(item: T | false | null | undefined): item is T { function isFsEventsEnabled (line 175) | function isFsEventsEnabled(): boolean { function parsePackageImportSpecifier (line 185) | function parsePackageImportSpecifier(imp: string): [string, string | nul... function resolveDependencyManifest (line 203) | function resolveDependencyManifest(dep: string, cwd: string): [string | ... constant MISSING_PLUGIN_SUGGESTIONS (line 250) | const MISSING_PLUGIN_SUGGESTIONS: {[ext: string]: string} = { function openInExistingChromeBrowser (line 269) | async function openInExistingChromeBrowser(url: string) { function openInBrowser (line 300) | async function openInBrowser( function checkLockfileHash (line 333) | async function checkLockfileHash(dir: string) { function updateLockfileHash (line 344) | async function updateLockfileHash(dir: string) { function getAliasType (line 355) | function getAliasType(val: string): 'package' | 'path' | 'url' { function findMatchingAliasEntry (line 365) | function findMatchingAliasEntry( function getExtensionMatch (line 390) | function getExtensionMatch( function isPathImport (line 409) | function isPathImport(spec: string): boolean { function isRemoteUrl (line 413) | function isRemoteUrl(val: string): boolean { function isImportOfPackage (line 417) | function isImportOfPackage(importUrl: string, packageName: string) { function sanitizePackageName (line 426) | function sanitizePackageName(filepath: string): string { function cssSourceMappingURL (line 435) | function cssSourceMappingURL(code: string, sourceMappingURL: string) { function jsSourceMappingURL (line 440) | function jsSourceMappingURL(code: string, sourceMappingURL: string) { function relativeURL (line 445) | function relativeURL(path1: string, path2: string): string { constant CLOSING_HEAD_TAG (line 453) | const CLOSING_HEAD_TAG = /<\s*\/\s*head\s*>/gi; function appendHtmlToHead (line 456) | function appendHtmlToHead(doc: string, htmlToAdd: string) { function isJavaScript (line 469) | function isJavaScript(pathname: string): boolean { function getExtension (line 474) | function getExtension(str: string) { function hasExtension (line 478) | function hasExtension(str: string, ext: string) { function replaceExtension (line 482) | function replaceExtension(fileName: string, oldExt: string, newExt: stri... function addExtension (line 487) | function addExtension(fileName: string, newExt: string): string { function removeExtension (line 491) | function removeExtension(fileName: string, oldExt: string): string { function addLeadingSlash (line 496) | function addLeadingSlash(path: string) { function addTrailingSlash (line 501) | function addTrailingSlash(path: string) { function removeLeadingSlash (line 506) | function removeLeadingSlash(path: string) { function removeTrailingSlash (line 511) | function removeTrailingSlash(path: string) { function spliceString (line 516) | function spliceString(source: string, withSlice: string, start: number, ... constant HMR_CLIENT_CODE (line 520) | const HMR_CLIENT_CODE = fs.readFileSync( constant HMR_OVERLAY_CODE (line 524) | const HMR_OVERLAY_CODE = fs.readFileSync( constant INIT_TEMPLATE_FILE (line 528) | const INIT_TEMPLATE_FILE = fs.readFileSync( FILE: test-dev/dev.test.ts function startServer (line 11) | async function startServer (cwd) { FILE: test/build/entrypoint-ids/entrypoint-ids.test.js constant IMPORTS (line 5) | const IMPORTS = ['ansi-styles', 'chalk']; FILE: test/build/plugin-build-script/src/index.ts type stringType (line 1) | type stringType = string; FILE: test/build/react-lazy-bundle/src/components/App.jsx function App (line 3) | function App({children}) { FILE: test/build/react-lazy-bundle/src/components/Articles.jsx function Articles (line 3) | function Articles() { FILE: test/build/test-workspace-component/index.mjs function testComponent (line 3) | function testComponent() { FILE: test/build/test-workspace-component/works-without-extension.ts function testFn (line 1) | function testFn() { FILE: test/create-snowpack-app/create-snowpack-app.test.js constant TEMPLATES_DIR (line 7) | const TEMPLATES_DIR = path.resolve(__dirname, '..', '..', 'create-snowpa... constant STRIP_CSS_MODULES (line 9) | const STRIP_CSS_MODULES = /_[\d\w]{5}_[\d]{1,3}/g; FILE: test/esinstall/esinstall-test-utils.js function existsPackageJson (line 16) | function existsPackageJson(cwd) { function runTest (line 32) | async function runTest(installTargets, options) { function testLockFile (line 50) | async function testLockFile(cwd) { function testWebModules (line 65) | async function testWebModules( FILE: test/esinstall/import-astro/import-astro.test.js method load (line 18) | load() { FILE: test/esinstall/import-missing/packages/@material/animation/dist/mdc.animation.d.ts type StandardCssPropertyName (line 83) | type StandardCssPropertyName = 'animation' | 'transform' | 'transition'; type PrefixedCssPropertyName (line 84) | type PrefixedCssPropertyName = '-webkit-animation' | '-webkit-transform'... type StandardJsEventType (line 85) | type StandardJsEventType = 'animationend' | 'animationiteration' | 'anim... type PrefixedJsEventType (line 86) | type PrefixedJsEventType = 'webkitAnimationEnd' | 'webkitAnimationIterat... type CssVendorProperty (line 87) | interface CssVendorProperty { type JsVendorProperty (line 91) | interface JsVendorProperty { type CssVendorPropertyMap (line 96) | type CssVendorPropertyMap = { type JsVendorPropertyMap (line 99) | type JsVendorPropertyMap = { FILE: test/esinstall/import-missing/packages/@material/animation/dist/mdc.animation.js function __webpack_require__ (line 23) | function __webpack_require__(moduleId) { function __export (line 138) | function __export(m) { function isWindow (line 227) | function isWindow(windowObj) { function getCorrectPropertyName (line 230) | function getCorrectPropertyName(windowObj, cssProperty) { function getCorrectEventName (line 242) | function getCorrectEventName(windowObj, eventType) { FILE: test/esinstall/import-missing/packages/@material/animation/types.d.ts type StandardCssPropertyName (line 23) | type StandardCssPropertyName = 'animation' | 'transform' | 'transition'; type PrefixedCssPropertyName (line 24) | type PrefixedCssPropertyName = '-webkit-animation' | '-webkit-transform'... type StandardJsEventType (line 25) | type StandardJsEventType = 'animationend' | 'animationiteration' | 'anim... type PrefixedJsEventType (line 26) | type PrefixedJsEventType = 'webkitAnimationEnd' | 'webkitAnimationIterat... type CssVendorProperty (line 27) | interface CssVendorProperty { type JsVendorProperty (line 31) | interface JsVendorProperty { type CssVendorPropertyMap (line 36) | type CssVendorPropertyMap = { type JsVendorPropertyMap (line 39) | type JsVendorPropertyMap = { FILE: test/esinstall/import-missing/packages/@material/animation/util.js function isWindow (line 59) | function isWindow(windowObj) { function getCorrectPropertyName (line 62) | function getCorrectPropertyName(windowObj, cssProperty) { function getCorrectEventName (line 71) | function getCorrectEventName(windowObj, eventType) { FILE: test/esinstall/import-missing/packages/tslib/tslib.es6.js function __extends (line 24) | function __extends(d, b) { function __rest (line 41) | function __rest(s, e) { function __decorate (line 53) | function __decorate(decorators, target, key, desc) { function __param (line 60) | function __param(paramIndex, decorator) { function __metadata (line 64) | function __metadata(metadataKey, metadataValue) { function __awaiter (line 68) | function __awaiter(thisArg, _arguments, P, generator) { function __generator (line 78) | function __generator(thisArg, body) { function __createBinding (line 106) | function __createBinding(o, m, k, k2) { function __exportStar (line 111) | function __exportStar(m, exports) { function __values (line 115) | function __values(o) { function __read (line 127) | function __read(o, n) { function __spread (line 144) | function __spread() { function __spreadArrays (line 150) | function __spreadArrays() { function __await (line 158) | function __await(v) { function __asyncGenerator (line 162) | function __asyncGenerator(thisArg, _arguments, generator) { function __asyncDelegator (line 174) | function __asyncDelegator(o) { function __asyncValues (line 180) | function __asyncValues(o) { function __makeTemplateObject (line 188) | function __makeTemplateObject(cooked, raw) { function __importStar (line 193) | function __importStar(mod) { function __importDefault (line 201) | function __importDefault(mod) { function __classPrivateFieldGet (line 205) | function __classPrivateFieldGet(receiver, privateMap) { function __classPrivateFieldSet (line 212) | function __classPrivateFieldSet(receiver, privateMap, value) { FILE: test/esinstall/import-missing/packages/tslib/tslib.js function createExporter (line 51) | function createExporter(exports, previous) { function __ (line 70) | function __() { this.constructor = d; } function adopt (line 110) | function adopt(value) { return value instanceof P ? value : new P(functi... function fulfilled (line 112) | function fulfilled(value) { try { step(generator.next(value)); } catch (... function rejected (line 113) | function rejected(value) { try { step(generator["throw"](value)); } catc... function step (line 114) | function step(result) { result.done ? resolve(result.value) : adopt(resu... function verb (line 122) | function verb(n) { return function (v) { return step([n, v]); }; } function step (line 123) | function step(op) { function verb (line 207) | function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(fu... function resume (line 208) | function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3... function step (line 209) | function step(r) { r.value instanceof __await ? Promise.resolve(r.value.... function fulfill (line 210) | function fulfill(value) { resume("next", value); } function reject (line 211) | function reject(value) { resume("throw", value); } function settle (line 212) | function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q... function verb (line 218) | function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { v... function verb (line 225) | function verb(n) { i[n] = o[n] && function (v) { return new Promise(func... function settle (line 226) | function settle(resolve, reject, d, v) { Promise.resolve(v).then(functio... FILE: test/esinstall/import-named-from-default/package/default-only-esm/index.js function EventEmitter (line 1) | function EventEmitter() {} FILE: test/esinstall/import-node-builtin/packages/bad-node-builtin-pkg/entrypoint.js constant FOO (line 1) | const FOO = 42; FILE: test/esinstall/import-types/packages/type-only-pkg/index.d.ts type Foo (line 1) | type Foo = 'i am types only!'; FILE: test/esinstall/named-exports/packages/umd-named-exports/autolayout.js function s (line 20) | function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&re... function defineProperties (line 23) | function defineProperties(target, props) { for (var i = 0; i < props.len... function _classCallCheck (line 25) | function _classCallCheck(instance, Constructor) { if (!(instance instanc... function peg$subclass (line 83) | function peg$subclass(child, parent) { function SyntaxError (line 91) | function SyntaxError(message, expected, found, offset, line, column) { function parse (line 104) | function parse(input) { function peg$subclass (line 1213) | function peg$subclass(child, parent) { function SyntaxError (line 1221) | function SyntaxError(message, expected, found, offset, line, column) { function parse (line 1234) | function parse(input) { function _processEqualSpacer (line 3886) | function _processEqualSpacer(context, stackView) { function _processProportionalSpacer (line 3964) | function _processProportionalSpacer(context, stackView) { function _processStackView (line 4013) | function _processStackView(context, name, subView) { function _getRange (line 4057) | function _getRange(name, range) { function _processCascade (line 4089) | function _processCascade(context, cascade, parentItem) { function VisualFormat (line 4233) | function VisualFormat() { function SubView (line 4527) | function SubView(options) { function _getConst (line 4862) | function _getConst(name, value) { function _getSubView (line 4874) | function _getSubView(viewName) { function _getSpacing (line 4893) | function _getSpacing(constraint) { function _addConstraint (line 4936) | function _addConstraint(constraint) { function _compareSpacing (line 5004) | function _compareSpacing(old, newz) { function View (line 5049) | function View(options) { method description (line 5357) | set description(a){this._description=a} method description (line 5357) | get description(){return"("+this._name+") "+this._description} method message (line 5357) | get message(){return this.description} method required (line 5357) | get required(){return this===a.Strength.required} method x (line 5357) | get x(){return this._x} method x (line 5357) | set x(b){b instanceof a.Variable?this._x=b:this._x.value=b} method y (line 5357) | get y(){return this._y} method y (line 5357) | set y(b){b instanceof a.Variable?this._y=b:this._y.value=b} method isConstant (line 5357) | get isConstant(){return 0==this.terms.size} method required (line 5357) | get required(){return this.strength===a.Strength.required} function a (line 5358) | function a(a){return'"'+a.replace(/\\/g,"\\\\").replace(/"/g,'\\"').repl... function k (line 5358) | function k(a){g>e||(e>g&&(g=e,h=[]),h.push(a))} function l (line 5358) | function l(){var a,b,c,d,f;if(d=e,f=e,a=z(),null!==a){if(c=m(),null!==c)... function m (line 5358) | function m(){var a,b,c,d;return c=e,d=e,a=P(),null!==a?(b=s(),null!==b?a... function n (line 5358) | function n(){var a;return b.length>e?(a=b.charAt(e),e++):(a=null,0===f&&... function o (line 5358) | function o(){var a;return/^[a-zA-Z]/.test(b.charAt(e))?(a=b.charAt(e),e+... function p (line 5358) | function p(){var a;return f++,/^[\t\x0B\f \xA0\uFEFF]/.test(b.charAt(e))... function q (line 5358) | function q(){var a;return/^[\n\r\u2028\u2029]/.test(b.charAt(e))?(a=b.ch... function r (line 5358) | function r(){var a;return f++,10===b.charCodeAt(e)?(a="\n",e++):(a=null,... function s (line 5358) | function s(){var a,c,d;return d=e,a=z(),null!==a?(59===b.charCodeAt(e)?(... function t (line 5358) | function t(){var a,c;return c=e,f++,b.length>e?(a=b.charAt(e),e++):(a=nu... function u (line 5358) | function u(){var a;return f++,a=v(),null===a&&(a=x()),f--,0===f&&null===... function v (line 5358) | function v(){var a,c,d,g,h,i,j;if(h=e,"/*"===b.substr(e,2)?(a="/*",e+=2)... function w (line 5358) | function w(){var a,c,d,g,h,i,j;if(h=e,"/*"===b.substr(e,2)?(a="/*",e+=2)... function x (line 5358) | function x(){var a,c,d,g,h,i,j;if(h=e,"//"===b.substr(e,2)?(a="//",e+=2)... function y (line 5358) | function y(){var a,b;for(a=[],b=p(),null===b&&(b=w(),null===b&&(b=x()));... function z (line 5358) | function z(){var a,b;for(a=[],b=p(),null===b&&(b=r(),null===b&&(b=u()));... function A (line 5358) | function A(){var a,b;return b=e,a=C(),null===a&&(a=B()),null!==a&&(a=fun... function B (line 5358) | function B(){var a,c,d;if(d=e,/^[0-9]/.test(b.charAt(e))?(c=b.charAt(e),... function C (line 5358) | function C(){var a,c,d,g,h;return g=e,h=e,a=B(),null!==a?(46===b.charCod... function D (line 5358) | function D(){var a,c,d,g;if(g=e,/^[\-+]/.test(b.charAt(e))?(a=b.charAt(e... function E (line 5358) | function E(){var a,b;return f++,b=e,a=F(),null!==a&&(a=function(a,b){ret... function F (line 5358) | function F(){var a,b,c,d,g;if(f++,d=e,g=e,a=o(),null!==a){for(b=[],c=o()... function G (line 5358) | function G(){var a,c,d,g,h,i,j;return i=e,a=E(),null!==a&&(a=function(a,... function H (line 5358) | function H(){var a,b,c,d,f;return a=G(),null===a&&(d=e,f=e,a=I(),null!==... function I (line 5358) | function I(){var a;return 43===b.charCodeAt(e)?(a="+",e++):(a=null,0===f... function J (line 5358) | function J(){var a,b,c,d,f,g,h,i,j;if(h=e,i=e,a=H(),null!==a){for(b=[],j... function K (line 5358) | function K(){var a;return 42===b.charCodeAt(e)?(a="*",e++):(a=null,0===f... function L (line 5358) | function L(){var a,b,c,d,f,g,h,i,j;if(h=e,i=e,a=J(),null!==a){for(b=[],j... function M (line 5358) | function M(){var a;return 43===b.charCodeAt(e)?(a="+",e++):(a=null,0===f... function N (line 5358) | function N(){var a,b,c,d,f,g,h,i,j;if(h=e,i=e,a=L(),null!==a){for(b=[],j... function O (line 5358) | function O(){var a;return"<="===b.substr(e,2)?(a="<=",e+=2):(a=null,0===... function P (line 5358) | function P(){var a,c,d,g,h,i,j,l,m;if(j=e,l=e,a=N(),null!==a){for(c=[],m... function Q (line 5358) | function Q(a){a.sort();for(var b=null,c=[],d=0;a.length>d;d++)a[d]!==b&&... function R (line 5358) | function R(){for(var a=1,c=1,d=!1,f=0;Math.max(e,g)>f;f++){var h=b.charA... function g (line 5358) | function g(b,c){var d,e;switch(b.length){case 0:d="end of input";break;c... FILE: test/esinstall/package-entrypoints/export-map-dot-no-slash/entrypoint.js constant FOO (line 1) | const FOO = 42; FILE: test/esinstall/package-entrypoints/implicit-main/index.d.ts type HelloJS (line 1) | interface HelloJS { FILE: test/esinstall/polyfill-node/packages/node-builtin-pkg/entrypoint.js constant FOO (line 1) | const FOO = 42; FILE: test/fixture-utils.js constant IGNORE_EXTS (line 8) | const IGNORE_EXTS = ['.png', '.jpg', '.ico']; function runInFixture (line 13) | async function runInFixture(testFiles, {absolute = false, overrides = {}... method writeFile (line 130) | async writeFile(fileLoc, fileContents) { method readFiles (line 137) | readFiles() { method cleanup (line 167) | async cleanup() { FILE: test/snowpack/config/plugins/instantiatedObject/index.test.js class Instantiable (line 4) | class Instantiable { method constructor (line 5) | constructor() { method method (line 9) | method() {} FILE: test/snowpack/import-sri.test.ts constant EMPTY (line 3) | const EMPTY = Buffer.from(''); FILE: test/snowpack/util.test.ts constant EMPTY (line 3) | const EMPTY = Buffer.from(''); FILE: test/test-utils.js constant STRIP_CHUNKHASH (line 7) | const STRIP_CHUNKHASH = /([\w\-]+\-)[a-z0-9]{8}(\.js)/g; constant STRIP_REV (line 8) | const STRIP_REV = /\?rev=\w+/gm; constant STRIP_WHITESPACE (line 9) | const STRIP_WHITESPACE = /((\s+$)|((\\r\\n)|(\\n)))/gm; constant UTF8_FRIENDLY_EXTS (line 10) | const UTF8_FRIENDLY_EXTS = [ function setupBuildTest (line 25) | function setupBuildTest(cwd) { function getFile (line 30) | function getFile(results, TEST_OUT, id) { function readFiles (line 42) | function readFiles(directory, {ignore} = {}) { function stripChunkhash (line 63) | function stripChunkhash(code) { function stripRev (line 69) | function stripRev(code) { function stripWS (line 75) | function stripWS(code) { function stripBenchmark (line 81) | function stripBenchmark(stdout) { function stripStats (line 87) | function stripStats(stdout) { function stripWhitespace (line 94) | function stripWhitespace(stdout) { function stripChunkHash (line 100) | function stripChunkHash(stdout) { function stripUrlHash (line 106) | function stripUrlHash(stdout) { function stripConfigErrorPath (line 112) | function stripConfigErrorPath(stdout) { function stripResolveErrorPath (line 118) | function stripResolveErrorPath(stdout) { function stripStacktrace (line 124) | function stripStacktrace(stdout) { function stripSvelteComment (line 130) | function stripSvelteComment(stdout) { function stripHomePath (line 136) | function stripHomePath(stdout) { function stripEverything (line 143) | function stripEverything(output) { function stripLockfile (line 155) | function stripLockfile(output) { function fmtjson (line 161) | function fmtjson(json) { FILE: www/public/js/index.js function debounce (line 6) | function debounce(fn) { function isScrolledIntoView (line 25) | function isScrolledIntoView(el) { function setActiveToc (line 32) | function setActiveToc() { FILE: www/scripts/copy.js function copy (line 15) | async function copy() { FILE: www/src/components/CompanyLogo.jsx function CompanyLogo (line 3) | function CompanyLogo({ user }) { FILE: www/src/components/PluginSearchPage.jsx function searchPlugins (line 5) | async function searchPlugins(val) { function Card (line 15) | function Card({result}) { function PluginSearchPageLive (line 44) | function PluginSearchPageLive() { function PluginSearchPage (line 117) | function PluginSearchPage(props) { FILE: www/src/components/docsearch.js method connectedCallback (line 7) | connectedCallback() {