Skip to content

Commit 5c3684b

Browse files
author
taylorliu
committed
fix(ssr): change throw error to warn to fix hot reload
1 parent 529df3b commit 5c3684b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/server/webpack-plugin/server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { validate, isJS, onEmit } from './util'
1+
import { validate, isJS, onEmit, warn } from './util'
22

33
export default class VueSSRServerPlugin {
44
constructor (options = {}) {
@@ -23,7 +23,7 @@ export default class VueSSRServerPlugin {
2323
const entryAssets = entryInfo.assets.filter(isJS)
2424

2525
if (entryAssets.length > 1) {
26-
throw new Error(
26+
warn(
2727
`Server-side bundle should have one single entry file. ` +
2828
`Avoid using CommonsChunkPlugin in the server config.`
2929
)

0 commit comments

Comments
 (0)