refactor: ensure ssr branches are included in esm-bundler build

This commit is contained in:
Evan You
2021-09-23 15:02:19 -04:00
parent 4886a63d82
commit 87c86e4cc2
11 changed files with 52 additions and 26 deletions

View File

@@ -141,7 +141,7 @@ export function defineAsyncComponent<
// suspense-controlled or SSR.
if (
(__FEATURE_SUSPENSE__ && suspensible && instance.suspense) ||
(__NODE_JS__ && isInSSRComponentSetup)
(__SSR__ && isInSSRComponentSetup)
) {
return load()
.then(comp => {