Skip to content

Commit

Permalink
fix: Revert "pass hmr host explicitly by default (#119)" (close #179)
Browse files Browse the repository at this point in the history
This reverts commit 07d3237.
  • Loading branch information
ElMassimo committed Jan 18, 2022
1 parent d9b6225 commit f629628
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions vite-plugin-ruby/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ function config (userConfig: UserConfig, env: ConfigEnv): UserConfig {
const { assetsDir, base, outDir, host, https, port, root, entrypoints } = config

const fs = { allow: [projectRoot], strict: true }
const hmr = userConfig.server?.hmr ?? { host, port }
const server = { host, https, port, strictPort: true, fs, hmr }

const server = { host, https, port, strictPort: true, fs }

const isProduction = config.mode === 'production'

const build = {
Expand Down

0 comments on commit f629628

Please sign in to comment.