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 79ecdb1 commit 6006b56Copy full SHA for 6006b56
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