LegacySupport — vite Architecture
Generates polyfills and SystemJS for older browsers
Entity Profile
Dependency Diagram
graph TD subdomain_PluginSystem_LegacySupport["LegacySupport"] ed570918_8c20_047e_d700_db6178114e8f["pluginFilter.ts"] subdomain_PluginSystem_LegacySupport --> ed570918_8c20_047e_d700_db6178114e8f c3eb47df_971b_0616_6c9f_29b3ded72224["css.ts"] subdomain_PluginSystem_LegacySupport --> c3eb47df_971b_0616_6c9f_29b3ded72224 1ad4458e_b744_979c_c30e_c1021fdd26b7["preAlias.ts"] subdomain_PluginSystem_LegacySupport --> 1ad4458e_b744_979c_c30e_c1021fdd26b7 e9538fc4_20d7_ac58_698b_cf82f4e5db36["esbuildBannerFooterCompatPlugin.ts"] subdomain_PluginSystem_LegacySupport --> e9538fc4_20d7_ac58_698b_cf82f4e5db36 9776ecb6_00c0_b3b9_b3f7_177fedabeacc["index.ts"] subdomain_PluginSystem_LegacySupport --> 9776ecb6_00c0_b3b9_b3f7_177fedabeacc 4c658b37_85c2_95c4_7b25_9e1e2258e2a4["prepareOutDir.ts"] subdomain_PluginSystem_LegacySupport --> 4c658b37_85c2_95c4_7b25_9e1e2258e2a4 866d2d5c_2ca3_dc37_7bf8_a3aba1fe0d40["json.ts"] subdomain_PluginSystem_LegacySupport --> 866d2d5c_2ca3_dc37_7bf8_a3aba1fe0d40 e962fae7_53df_5265_a6c6_b9cfe28d06e1["dynamicImportVars.ts"] subdomain_PluginSystem_LegacySupport --> e962fae7_53df_5265_a6c6_b9cfe28d06e1 04ad4685_2ce3_556a_152b_c93668a74b3b["importAnalysisBuild.ts"] subdomain_PluginSystem_LegacySupport --> 04ad4685_2ce3_556a_152b_c93668a74b3b 971bf58d_477c_c4d8_0c3b_735e572044c4["worker.ts"] subdomain_PluginSystem_LegacySupport --> 971bf58d_477c_c4d8_0c3b_735e572044c4 2dc11bc2_35a1_d20e_bf9f_1a3c2bbe3f85["modulePreloadPolyfill.ts"] subdomain_PluginSystem_LegacySupport --> 2dc11bc2_35a1_d20e_bf9f_1a3c2bbe3f85 6e6f4bb4_92d1_caf8_3dbc_8f1aaeb851bd["define.ts"] subdomain_PluginSystem_LegacySupport --> 6e6f4bb4_92d1_caf8_3dbc_8f1aaeb851bd 926e3b98_b813_2ff8_abb3_16447ab95544["esbuild.ts"] subdomain_PluginSystem_LegacySupport --> 926e3b98_b813_2ff8_abb3_16447ab95544 b68d9c02_4026_8cfa_8eb1_35ec4a8f23cb["importMetaGlob.ts"] subdomain_PluginSystem_LegacySupport --> b68d9c02_4026_8cfa_8eb1_35ec4a8f23cb style subdomain_PluginSystem_LegacySupport fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Domain
Functions
- addToHTMLProxyTransformResult()
- areSeparateFolders()
- buildPolyfillChunk()
- bundleWorkerEntry()
- combineSourcemapsIfExists()
- compileCSS()
- compileCSSPreprocessors()
- convertEsbuildConfigToOxcConfig()
- convertTargets()
- createCSSResolvers()
- createCachedImport()
- createClientConfigValueReplacer()
- createCodeFilter()
- createFilterForTransform()
- createPluginHookUtils()
- cspHashes()
- cssFileName()
- cssPlugin()
- detectPolyfills()
- detectScriptRel()
- doImportCSSReplace()
- dynamicImportHelper()
- equalWithoutSuffix()
- esbuildBannerFooterCompatPlugin()
- extractFilter()
- extractImportExpressionFromClassicScript()
- extractImportedBindings()
- findClosingParen()
- findCorrespondingCloseParenthesisPosition()
- findNearestPackagePath()
- getAliasPatterns()
- getBaseInHTML()
- getCachedFilterForPlugin()
- getEntryFilenameFromHash()
- getIdentifierNameOrLiteralValue()
- getLightningCssErrorMessageForIeSyntaxes()
- getLineBreaks()
- getMatcherString()
- getPreloadCode()
- getRealPath()
- getScriptInfo()
- getSource()
- getTSConfckCache()
- handleDefineValue()
- handleParseError()
- headTagInsertCheck()
- htmlInlineProxyPlugin()
- id()
- importEsbuild()
- importGlobPlugin()
- importLightningCSS()
- importPostcssModules()
- incrementIndent()
- injectCspNonceMetaTagHook()
- injectEsbuildHelpers()
- injectInlinedCSS()
- injectNonceAttributeTagHook()
- injectToHead()
- input()
- instantiateFromUrl()
- interopHelper()
- invalidateAffectedBundles()
- isCssScopeToRendered()
- isDirectRequest()
- isEntirelyImport()
- isExplicitImportRequired()
- isHTMLProxy()
- isJSONRequest()
- isLegacyBundle()
- isLegacyChunk()
- isModuleCSSRequest()
- isNonJsRequest()
- isPreProcessor()
- isSameContent()
- isVirtualModule()
- joinUrlSegments()
- lastNthChar()
- lessProcessor()
- licenseEntryToMarkdown()
- loadBabel()
- loadPreprocessorPath()
- loadSss()
- loadTsconfigJsonForFile()
- makeScssWorker()
- manifestPlugin()
- mergeAcceptedUrls()
- modulePreloadPolyfillPlugin()
- normalizeFilter()
- optimizeAliasReplacementForSSR()
- originalClassName()
- oxcResolvePlugin()
- packageEntryFailure()
- parseGlobOptions()
- parseRelAttr()
- parseWorkerOptions()
- patternToCodeFilter()
- polyfillsPlugin()
- preAliasPlugin()
- preImportMapHook()
- prepareOutDirPlugin()
- prependInjectFallback()
- prependModenChunkLegacyGuardPlugin()
- preprocessCSS()
- rebaseUrls()
- recordAndRemovePolyfillBabelPlugin()
- removeBundle()
- removeViteIgnoreAttr()
- replaceDefine()
- replaceLegacyEnvBabelPlugin()
- replaceModernEnvBabelPlugin()
- resolveEsbuildTranspileOptions()
- resolveExportsOrImports()
- resolveMinifyCssEsbuildOptions()
- resolvePostcssConfig()
- resolveSubpathImports()
- resolveTsconfigTarget()
- rewriteCssUrls()
- rewriteImportCss()
- serializeTags()
- setOxcTransformOptionsFromTsconfigOptions()
- skipUrlReplacer()
- source()
- stylProcessor()
- terserPlugin()
- throttle()
- throwFileNotFoundInOptimizedDep()
- throwProcessingError()
- toAbsoluteGlob()
- toAssetPathFromHtml()
- toOutputFilePathInHtml()
- toRelativePath()
- transformDynamicImport()
- transformSugarSS()
- transformWithEsbuild()
- traverseNodes()
- tryCleanFsResolve()
- tryFsResolve()
- tryOptimizedResolve()
- tryResolveBrowserEntry()
- tryResolveRealFileWithExtensions()
- unquotedUrl()
- viteLegacyPlugin()
- viteLegacyPluginCjs()
- wasmHelperPlugin()
- webWorkerPostPlugin()
- workerImportMetaUrlPlugin()
- wrapIIFEBabelPlugin()
- writeLine()
Source Files
- packages/vite/src/node/plugins/css.ts
- packages/vite/src/node/plugins/define.ts
- packages/vite/src/node/plugins/dynamicImportVars.ts
- packages/vite/src/node/plugins/esbuild.ts
- packages/vite/src/node/plugins/esbuildBannerFooterCompatPlugin.ts
- packages/vite/src/node/plugins/importAnalysisBuild.ts
- packages/vite/src/node/plugins/importMetaGlob.ts
- packages/plugin-legacy/src/index.ts
- packages/vite/src/node/plugins/json.ts
- packages/vite/src/node/plugins/manifest.ts
- packages/vite/src/node/plugins/modulePreloadPolyfill.ts
- packages/vite/src/node/plugins/pluginFilter.ts
- packages/vite/src/node/plugins/preAlias.ts
- packages/vite/src/node/plugins/prepareOutDir.ts
- packages/vite/src/node/plugins/worker.ts
Source
- packages/vite/src/node/plugins/css.ts
- packages/vite/src/node/plugins/define.ts
- packages/vite/src/node/plugins/dynamicImportVars.ts
- packages/vite/src/node/plugins/esbuild.ts
- packages/vite/src/node/plugins/esbuildBannerFooterCompatPlugin.ts
- packages/vite/src/node/plugins/importAnalysisBuild.ts
- packages/vite/src/node/plugins/importMetaGlob.ts
- packages/plugin-legacy/src/index.ts
- packages/vite/src/node/plugins/json.ts
- packages/vite/src/node/plugins/manifest.ts
- packages/vite/src/node/plugins/modulePreloadPolyfill.ts
- packages/vite/src/node/plugins/pluginFilter.ts
- packages/vite/src/node/plugins/preAlias.ts
- packages/vite/src/node/plugins/prepareOutDir.ts
- packages/vite/src/node/plugins/worker.ts
Frequently Asked Questions
What is the LegacySupport subdomain?
LegacySupport is a subdomain in the vite codebase, part of the PluginSystem domain. Generates polyfills and SystemJS for older browsers It contains 15 source files.
Which domain does LegacySupport belong to?
LegacySupport belongs to the PluginSystem domain.
What functions are in LegacySupport?
The LegacySupport subdomain contains 148 function(s): addToHTMLProxyTransformResult, areSeparateFolders, buildPolyfillChunk, bundleWorkerEntry, combineSourcemapsIfExists, compileCSS, compileCSSPreprocessors, convertEsbuildConfigToOxcConfig, and 140 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free