github vanilla-extract-css/vanilla-extract @vanilla-extract/compiler@0.3.0

latest releases: @vanilla-extract/rollup-plugin@1.4.1, @vanilla-extract/compiler@0.3.1, @vanilla-extract/vite-plugin@5.1.1...
2 months ago

Minor Changes

  • #1614 4e92cce Thanks @askoufis! - Add new getAllCss API

    The Compiler class now provides a getAllCss 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();

Don't miss a new vanilla-extract release

NewReleases is sending notifications on new releases.