Skip to content

Commit 46966ac

Browse files
authored
docs: use .default with dynamic imports
1 parent 00b5aea commit 46966ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/guide/ssr-compat.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export default {
5858
async enhanceApp({ app }) {
5959
if (!import.meta.env.SSR) {
6060
const plugin = await import('plugin-that-access-window-on-import')
61-
app.use(plugin)
61+
app.use(plugin.default)
6262
}
6363
}
6464
}
@@ -74,7 +74,7 @@ export default {
7474
async enhanceApp({ app }) {
7575
if (!import.meta.env.SSR) {
7676
const plugin = await import('plugin-that-access-window-on-import')
77-
app.use(plugin)
77+
app.use(plugin.default)
7878
}
7979
}
8080
} satisfies Theme

0 commit comments

Comments
 (0)