This enables the logic necessary to pick up the correct current instance
when using esm-browser builds for in-browser SSR, and fixes the problem
of `getCurrentInstance()` returning null during SSR in the SFC playground.
// is targeting Node (SSR)?
__CJS__: String(isCJSBuild),
// need SSR-specific branches?
- __SSR__: String(isCJSBuild || isBundlerESMBuild || isServerRenderer),
+ __SSR__: String(!isGlobalBuild),
// 2.x compat build
__COMPAT__: String(isCompatBuild),
__ESM_BUNDLER__: String(format.includes('esm-bundler')),
__ESM_BROWSER__: String(format.includes('esm-browser')),
__CJS__: String(format === 'cjs'),
- __SSR__: String(format === 'cjs' || format.includes('esm-bundler')),
+ __SSR__: String(format !== 'global'),
__COMPAT__: String(target === 'vue-compat'),
__FEATURE_SUSPENSE__: `true`,
__FEATURE_OPTIONS_API__: `true`,