Skip to content

Commit f92c962

Browse files
Jubekitimacdonald
andauthored
[1.x] Simpler conditional (#273)
* Update index.ts * Simplify conditional --------- Co-authored-by: Tim MacDonald <[email protected]>
1 parent f8071b5 commit f92c962

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/index.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,7 @@ function resolveLaravelPlugin(pluginConfig: Required<PluginConfig>): LaravelPlug
162162
...serverConfig.hmr,
163163
...(userConfig.server?.hmr === true ? {} : userConfig.server?.hmr),
164164
},
165-
https: typeof userConfig.server?.https !== 'undefined' ? userConfig.server.https : {
166-
...serverConfig.https,
167-
...(typeof userConfig.server?.https === 'undefined' ? {} : userConfig.server?.https),
168-
},
165+
https: userConfig.server?.https ?? serverConfig.https,
169166
} : undefined),
170167
},
171168
resolve: {

0 commit comments

Comments
 (0)