Home / Function/ getViteConfiguration() — astro Function Reference

getViteConfiguration() — astro Function Reference

Architecture documentation for the getViteConfiguration() function in index.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  3505419d_39da_09ce_a027_e46d2f0fcbb5["getViteConfiguration()"]
  eecbb2c4_1cf9_b32b_f41f_438a6587b783["index.ts"]
  3505419d_39da_09ce_a027_e46d2f0fcbb5 -->|defined in| eecbb2c4_1cf9_b32b_f41f_438a6587b783
  4b180446_06b5_5487_3d71_322adb03b9ff["optionsPlugin()"]
  3505419d_39da_09ce_a027_e46d2f0fcbb5 -->|calls| 4b180446_06b5_5487_3d71_322adb03b9ff
  ba0d20ce_c876_15aa_b0c7_59ee8fbf99e7["configEnvironmentPlugin()"]
  3505419d_39da_09ce_a027_e46d2f0fcbb5 -->|calls| ba0d20ce_c876_15aa_b0c7_59ee8fbf99e7
  style 3505419d_39da_09ce_a027_e46d2f0fcbb5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/integrations/react/src/index.ts lines 68–98

function getViteConfiguration(
	{
		include,
		exclude,
		babel,
		experimentalReactChildren,
		experimentalDisableStreaming,
	}: ReactIntegrationOptions = {},
	reactConfig: ReactVersionConfig,
) {
	return {
		plugins: [
			react({ include, exclude, babel }),
			optionsPlugin({
				experimentalReactChildren: !!experimentalReactChildren,
				experimentalDisableStreaming: !!experimentalDisableStreaming,
			}),
			configEnvironmentPlugin(reactConfig),
		],
		ssr: {
			noExternal: [
				// These are all needed to get mui to work.
				'@mui/material',
				'@mui/base',
				'@babel/runtime',
				'use-immer',
				'@material-tailwind/react',
			],
		},
	};
}

Domain

Subdomains

Frequently Asked Questions

What does getViteConfiguration() do?
getViteConfiguration() is a function in the astro codebase, defined in packages/integrations/react/src/index.ts.
Where is getViteConfiguration() defined?
getViteConfiguration() is defined in packages/integrations/react/src/index.ts at line 68.
What does getViteConfiguration() call?
getViteConfiguration() calls 2 function(s): configEnvironmentPlugin, optionsPlugin.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free