Releases: vanilla-extract-css/vanilla-extract
@vanilla-extract/[email protected]
Minor Changes
-
#1379
df9fe3ee3fc0057bc14a2333a405f8229f80c214Thanks @ronci! - Add support for passing multiple font face rules toglobalFontFaceEXAMPLE USAGE:
const gentium = 'GlobalGentium'; globalFontFace(gentium, [ { src: 'local("Gentium")', fontWeight: 'normal', }, { src: 'local("Gentium Bold")', fontWeight: 'bold', }, ]);
@vanilla-extract/[email protected]
Patch Changes
-
#1369
05ef2f0Thanks @askoufis! - Fixes a bug where an internal Remix plugin would throw an error inside thevite-nodecompiler -
#1368
90f0315Thanks @askoufis! - Update@vanilla-extract/integrationdependencyThis fixes a bug where APIs that used the
walkObjectutility (e.g.createTheme) would fail when used with module namespace objects insidevite-node. This was due to the previous implementation using the input object'sconstructorto initialize a clone, which does not work with module namespace objects because they do not have aconstructorfunction. -
Updated dependencies [
c8aefe0]:- @vanilla-extract/[email protected]
@vanilla-extract/[email protected]
Patch Changes
-
#1368
90f0315Thanks @askoufis! - walkObject: Use an empty object to initialize a clone instead of calling the input object'sconstructorThis allows
walkObjectto be used on module namespace objects:import { walkObject } from '@vanilla-extract/private'; import * as ns from './foo'; // Runtime error in `vite-node` walkObject(ns, myMappingFunction);
The previous implementation did not work with these objects because they do not have a
constructorfunction.
esbuildseems to have papered over this issue by providing aconstructorfunction on these objects, but this seems to not be the case withvite-node, hence the need for this fix.
@vanilla-extract/[email protected]
Minor Changes
- #1365
ed67731Thanks @renrizzolo! - Pages router: use next-style-loader in dev, output css in ssr
@vanilla-extract/[email protected]
Patch Changes
-
#1374
c8aefe0Thanks @askoufis! - Update@vanilla-extract/cssdependency -
Updated dependencies [
90f0315]:- @vanilla-extract/[email protected]
@vanilla-extract/[email protected]
Patch Changes
-
#1368
90f0315Thanks @askoufis! - Update@vanilla-extract/privatedependency -
Updated dependencies [
90f0315]:- @vanilla-extract/[email protected]
@vanilla-extract/[email protected]
Patch Changes
-
#1333
6ac9f66Thanks @askoufis! - Use a more accurate regex for detecting webpack template strings in pathsWe now use a modified version of the regex from the webpack source code to detect template strings in paths.
As long as the path isn't already escaped, we should detect it.
@vanilla-extract/[email protected]
@vanilla-extract/[email protected]
Patch Changes
-
#1333
6ac9f66Thanks @askoufis! - Use a more accurate regex for detecting webpack template strings in pathsWe now use a modified version of the regex from the webpack source code to detect template strings in paths.
As long as the path isn't already escaped, we should detect it. -
Updated dependencies [
6ac9f66]:- @vanilla-extract/[email protected]
@vanilla-extract/[email protected]
Patch Changes
- #1353
94d5f06Thanks @himself65! - Movevite-nodecompiler creation to a more appropriate plugin hook to ensure correct cleanup of resources