Skip to content

v0.7.0

Compare
Choose a tag to compare
@mayank99 mayank99 released this 19 May 02:49
· 8 commits to main since this release
  • Added support for global (unscoped) styles though the new createGlobalStyle function. This should only be used when it's not possible to use a .css/.scss file, such as when interpolating JS expressions.
    import { createGlobalStyle } from '@acab/ecsstatic';
    
    createGlobalStyle`
      :root {
        --foo: ${1 + 1};
      }
    `;
  • Moved the scss function from root into a subpath /scss and renamed it to css. This will result in out-of-the-box support for syntax highlighting without resorting to any renaming hacks,
    - import { scss as css } from '@acab/ecsstatic';
    + import { css } from '@acab/ecsstatic/scss';
  • Fixed an issue where styles were left behind in <head> after HMR
  • Bumped deps

Full Changelog: v0.6.1...v0.7.0