Skip to content

Commit

Permalink
docs: update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy committed Dec 19, 2022
1 parent d17ab15 commit 478c0b8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/vite/src/node/plugins/define.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ export function definePlugin(config: ResolvedConfig): Plugin {
...config.env,
SSR: !!config.build.ssr,
}
// put import.meta.hot replacement in importMetaKeys to allow
// users to override with config.define.
// set here to allow override with config.define
importMetaKeys['import.meta.hot'] = `false`
for (const key in env) {
importMetaKeys[`import.meta.env.${key}`] = JSON.stringify(env[key])
Expand Down

0 comments on commit 478c0b8

Please sign in to comment.