We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbee042 commit a9d5f4cCopy full SHA for a9d5f4c
packages/vite/src/node/plugins/define.ts
@@ -183,7 +183,8 @@ export function definePlugin(config: ResolvedConfig): RolldownPlugin {
183
if (enableNativePlugin) {
184
delete plugin.transform
185
plugin.options = function (option) {
186
- const [define, _pattern, _importMetaEnvVal] = getPattern(this.environment)
+ const [define, _pattern, importMetaEnvVal] = getPattern(this.environment)
187
+ define['import.meta.env'] = importMetaEnvVal
188
option.define = define
189
}
190
0 commit comments