Releases: vanilla-extract-css/vanilla-extract
@vanilla-extract/[email protected]
@vanilla-extract/[email protected]
Patch Changes
-
#1624
50f1234
Thanks @BPScott! - Include^7.0.0
invite
dependency range -
Updated dependencies [
50f1234
]:- @vanilla-extract/[email protected]
@vanilla-extract/[email protected]
@vanilla-extract/[email protected]
@vanilla-extract/[email protected]
Minor Changes
-
#1614
4e92cce
Thanks @askoufis! - Add newinlineCssInDev
option tounstable_mode
configuration propertySetting
unstableMode: 'inlineCssInDev'
will result in all CSS generated by Vanilla Extract being inlined into astyle
element at the top of the documenthead
. This feature is useful for preventing FOUC (Flash of Unstyled Content) when server-rendering your initial HTML. Without this, callingssrLoadModule
on your server entrypoint will not include the CSS in the HTML, leading to a FOUC when the client-side JavaScript takes over.Note that CSS will only be inlined in development mode. Production builds are unaffected by this setting.
EXAMPLE USAGE:
// vite.config.ts import { vanillaExtractPlugin } from '@vanilla-extract/vite-plugin'; export default { plugins: [ vanillaExtractPlugin({ unstable_mode: 'inlineCssInDev' }) ] };
Patch Changes
- Updated dependencies [
4e92cce
]:- @vanilla-extract/[email protected]
@vanilla-extract/[email protected]
Minor Changes
-
#1614
4e92cce
Thanks @askoufis! - Add newgetAllCss
APIThe
Compiler
class now provides agetAllCss
method that returns all the CSS currently stored by the compiler.EXAMPLE USAGE:
import { createCompiler } from '@vanilla-extract/compiler'; const compiler = createCompiler({ root: process.cwd() }); await compiler.processVanillaFile('foo.css.ts'); await compiler.processVanillaFile('bar.css.ts'); // Contains all CSS created by `foo.css.ts` and `bar.css.ts` const allCss = compiler.getAllCss();
@vanilla-extract/[email protected]
@vanilla-extract/[email protected]
Patch Changes
-
#1610
2b0be1b
Thanks @askoufis! - Revert "Improve ESM package entrypoints (#1597)" to fixNamed export not found
error when importing ESM entrypoints -
Updated dependencies []:
- @vanilla-extract/[email protected]
@vanilla-extract/[email protected]
Patch Changes
-
#1610
2b0be1b
Thanks @askoufis! - Revert "Improve ESM package entrypoints (#1597)" to fixNamed export not found
error when importing ESM entrypoints -
Updated dependencies [
2b0be1b
]:- @vanilla-extract/[email protected]
- @vanilla-extract/[email protected]