MCPcopy Create free account
hub / github.com/livebud/bud / Load

Function Load

framework/transform/transformrt/transform.go:82–92  ·  view source on GitHub ↗
(transformables ...*Transformable)

Source from the content-addressed store, hash-verified

80}
81
82func Load(transformables ...*Transformable) (*Map, error) {
83 browser, err := load(PlatformDOM, transformables)
84 if err != nil {
85 return nil, err
86 }
87 node, err := load(PlatformSSR, transformables)
88 if err != nil {
89 return nil, err
90 }
91 return &Map{browser, node}, nil
92}
93
94func getTransform(transformable *Transformable, platform Platform) (func(file *File) error, bool) {
95 tr, ok := transformable.For[platform]

Callers 5

TestTransformFunction · 0.92
TestPluginsFunction · 0.92
TestTargetsFunction · 0.92
DefaultFunction · 0.70
MustLoadFunction · 0.70

Calls 1

loadFunction · 0.70

Tested by 3

TestTransformFunction · 0.74
TestPluginsFunction · 0.74
TestTargetsFunction · 0.74