Skip to content

Commit

Permalink
refactor: remove unused placeholder in client.ts (#4675)
Browse files Browse the repository at this point in the history
  • Loading branch information
CHOYSEN committed Aug 21, 2021
1 parent 632a50a commit 8048f90
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion packages/vite/src/client/client.ts
Expand Up @@ -12,7 +12,6 @@ import { ErrorOverlay, overlayId } from './overlay'
import '@vite/env'

// injected by the hmr plugin when served
declare const __ROOT__: string
declare const __BASE__: string
declare const __HMR_PROTOCOL__: string
declare const __HMR_HOSTNAME__: string
Expand Down
1 change: 0 additions & 1 deletion packages/vite/src/node/plugins/clientInjections.ts
Expand Up @@ -43,7 +43,6 @@ export function clientInjectionsPlugin(config: ResolvedConfig): Plugin {
return code
.replace(`__MODE__`, JSON.stringify(config.mode))
.replace(`__BASE__`, JSON.stringify(config.base))
.replace(`__ROOT__`, JSON.stringify(config.root))
.replace(`__DEFINES__`, serializeDefine(config.define || {}))
.replace(`__HMR_PROTOCOL__`, JSON.stringify(protocol))
.replace(`__HMR_HOSTNAME__`, JSON.stringify(host))
Expand Down

0 comments on commit 8048f90

Please sign in to comment.