This repository was archived by the owner on Dec 30, 2022. It is now read-only.
Commit 103e46e
docs(example-ssr): use cjs imports (#3657)
<!--
Thanks for submitting a pull request!
Please provide enough information so that others can review your pull
request.
-->
**Summary**
The example is ran using node without esm, and webpack also isn't set up
for proper esm, so this errors in modern node (14+) if we use esm.
Setting up for proper esm (type module etc) wouldn't be representative
for most users, so we'll fall back to cjs
CR-2214
<!--
Explain the **motivation** for making this change.
What existing problem does the pull request solve?
Are there any linked issues?
-->
**Result**
<!--
Demonstrate the code is solid.
Example: The exact commands you ran and their output,
screenshots / videos if the pull request changes UI.
-->
using cjs imports in hooks-ssr example
Co-authored-by: Dhaya <154633+dhayab@users.noreply.github.com>1 parent 596553c commit 103e46e
2 files changed
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
15 | 20 | | |
16 | 21 | | |
17 | 22 | | |
| |||
0 commit comments