Skip to content

Commit

Permalink
fix(ssr): Mode should be 'stream' or 'string' (#5875)
Browse files Browse the repository at this point in the history
when set mode, then it become true in server.ts
  • Loading branch information
Baoyx007 committed Dec 24, 2020
1 parent 84e4940 commit 22b8a1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/preset-built-in/src/plugins/features/ssr/ssr.ts
Expand Up @@ -146,7 +146,7 @@ export default (api: IApi) => {
winPath(api.config.dynamicImport?.loading),
DynamicImport: !!api.config.dynamicImport,
Utils: winPath(require.resolve('./templates/utils')),
Mode: !!api.config.ssr?.mode || 'string',
Mode: api.config.ssr?.mode ?? 'string',
MountElementId: api.config.mountElementId,
StaticMarkup: !!api.config.ssr?.staticMarkup,
// @ts-ignore
Expand Down

0 comments on commit 22b8a1b

Please sign in to comment.