Skip to content

Commit

Permalink
docs(changelog): fix raw glob imports syntax (#7540)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kocal committed Mar 31, 2022
1 parent 173e4c9 commit 87fbe13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/CHANGELOG.md
Expand Up @@ -21,7 +21,7 @@ Web Workers now supports source map generation (see [#5417](https://github.com/v
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:

```js
const examples = import.meta.globEager('./examples/*.html', { as: { 'raw' }})
const examples = import.meta.globEager('./examples/*.html', { as: 'raw' })
```

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

0 comments on commit 87fbe13

Please sign in to comment.