Skip to content

Commit be2c69a

Browse files
glennreyesskipjack
authored andcommitted
docs(guides): fix cut-off text in code-splitting-async (#1229)
1 parent 4e8e4de commit be2c69a

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

content/guides/code-splitting-async.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,15 @@ module.exports = {
155155

156156
Not using the `syntax-dynamic-import` plugin will fail the build with:
157157

158-
* `Module build failed: SyntaxError: 'import' and 'export' may only appear at the top level`, or
159-
* `Module build failed: SyntaxError: Unexpected token, expected {`
158+
```javascript
159+
Module build failed: SyntaxError: 'import' and 'export' may only appear at the top level
160+
```
161+
162+
or
163+
164+
```javascript
165+
Module build failed: SyntaxError: Unexpected token, expected {
166+
```
160167
161168
162169
### Usage with Babel and `async`/`await`

0 commit comments

Comments
 (0)