Skip to content

Commit 87fbe13

Browse files
authored
docs(changelog): fix raw glob imports syntax (#7540)
1 parent 173e4c9 commit 87fbe13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vite/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Web Workers now supports source map generation (see [#5417](https://github.com/v
2121
Glob imports support for the `raw` modifier syntax has changed to using `{ as: 'raw' }`, which works in the same way as the `?raw` suffix in regular imports:
2222

2323
```js
24-
const examples = import.meta.globEager('./examples/*.html', { as: { 'raw' }})
24+
const examples = import.meta.globEager('./examples/*.html', { as: 'raw' })
2525
```
2626

2727
The `{ assert: { type: 'raw' }}` syntax introduced in v2.8 has been deprecated. See [#7017](https://github.com/vitejs/vite/issues/7017) for more information.

0 commit comments

Comments
 (0)