MCPcopy
hub / github.com/vitejs/vite / options

Function options

packages/vite/src/node/plugins/define.ts:123–131  ·  view source on GitHub ↗
(option)

Source from the content-addressed store, hash-verified

121 return {
122 name: 'vite:define',
123 options(option) {
124 const [define, _pattern, importMetaEnvVal] = getPattern(
125 this.environment,
126 )
127 define['import.meta.env'] = importMetaEnvVal
128 define['import.meta.env.*'] = 'undefined'
129 option.transform ??= {}
130 option.transform.define = { ...option.transform.define, ...define }
131 },
132 }
133 }
134 return true

Callers

nothing calls this directly

Calls 1

getPatternFunction · 0.85

Tested by

no test coverage detected