Skip to content

@vanilla-extract/[email protected]

Choose a tag to compare

@vanilla-extract-ci vanilla-extract-ci released this 29 Mar 07:06
· 126 commits to master since this release
a623c1c

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.