Skip to content

Commit

Permalink
docs: fix grammar in changelog (#11224)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Dec 6, 2022
1 parent f8c1ed0 commit f1b891f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/CHANGELOG.md
Expand Up @@ -36,7 +36,7 @@ In Vite 3, importing the default export of a `.css` file could introduce a doubl
import cssString from './global.css';
```

Since `.css` file will be emitted, but it's likely that the CSS string will also be used by the application code, for example, injected by the framework runtime. From Vite 4, the `.css` default export [has been deprecated](https://github.com/vitejs/vite/issues/11094). The `?inline` query suffix modifier needs to be used in this case, as that doesn't emit the imported `.css` styles.
This double loading could occur since a `.css` file will be emitted and it's likely that the CSS string will also be used by the application code for example, injected by the framework runtime. From Vite 4, the `.css` default export [has been deprecated](https://github.com/vitejs/vite/issues/11094). The `?inline` query suffix modifier needs to be used in this case, as that doesn't emit the imported `.css` styles.

```ts
import stuff from './global.css?inline'
Expand Down

0 comments on commit f1b891f

Please sign in to comment.