Releases: vanilla-extract-css/vanilla-extract
@vanilla-extract/[email protected]
@vanilla-extract/[email protected]
@vanilla-extract/[email protected]
Patch Changes
-
#1624
50f1234Thanks @BPScott! - Include^7.0.0invitedependency range -
Updated dependencies [
50f1234]:- @vanilla-extract/[email protected]
@vanilla-extract/[email protected]
@vanilla-extract/[email protected]
@vanilla-extract/[email protected]
Minor Changes
-
#1614
4e92cceThanks @askoufis! - Add newinlineCssInDevoption tounstable_modeconfiguration propertySetting
unstableMode: 'inlineCssInDev'will result in all CSS generated by Vanilla Extract being inlined into astyleelement 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, callingssrLoadModuleon 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
4e92cceThanks @askoufis! - Add newgetAllCssAPIThe
Compilerclass now provides agetAllCssmethod 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
2b0be1bThanks @askoufis! - Revert "Improve ESM package entrypoints (#1597)" to fixNamed export not founderror when importing ESM entrypoints -
Updated dependencies []:
- @vanilla-extract/[email protected]
@vanilla-extract/[email protected]
Patch Changes
-
#1610
2b0be1bThanks @askoufis! - Revert "Improve ESM package entrypoints (#1597)" to fixNamed export not founderror when importing ESM entrypoints -
Updated dependencies [
2b0be1b]:- @vanilla-extract/[email protected]
- @vanilla-extract/[email protected]