github vanilla-extract-css/vanilla-extract @vanilla-extract/private@1.0.4

26 days ago

Patch Changes

  • #1368 90f0315 Thanks @askoufis! - walkObject: Use an empty object to initialize a clone instead of calling the input object's constructor

    This allows walkObject to 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 constructor function.
    esbuild seems to have papered over this issue by providing a constructor function on these objects, but this seems to not be the case with vite-node, hence the need for this fix.

Don't miss a new vanilla-extract release

NewReleases is sending notifications on new releases.