`part:` modifier in node import statement

82 Views Asked by At

I came across this code in a javascript / Node project but can't find any explanation online as to what it is and how it works.

import PatchEvent, {set, unset} from 'part:@sanity/form-builder/patch-event';
1

There are 1 best solutions below

1
Michael Martinez On BEST ANSWER

Looks like this syntax is specific to sanity.io's platform and isn't proper node / javascript syntax

https://www.sanity.io/docs/parts