MCPcopy Create free account
hub / github.com/GuyARoss/orbit / DoBundleKeyChangeRequest

Method DoBundleKeyChangeRequest

internal/dev.go:62–75  ·  view source on GitHub ↗

DoBundleKeyChangeRequest processes a change request for a bundle key

(bundleKey string, opts *ChangeRequestOpts)

Source from the content-addressed store, hash-verified

60
61// DoBundleKeyChangeRequest processes a change request for a bundle key
62func (s *devSession) DoBundleKeyChangeRequest(bundleKey string, opts *ChangeRequestOpts) error {
63 component := s.RootComponents.FindBundleKey(bundleKey)
64 err := s.DirectFileChangeRequest("", component, opts)
65
66 if err != nil {
67 return parseerror.FromError(err, component.OriginalFilePath())
68 }
69
70 err = opts.HotReload.ReloadSignal()
71 if err != nil {
72 return parseerror.FromError(err, component.OriginalFilePath())
73 }
74 return nil
75}
76
77// ProcessChangeRequest will determine which type of change request is required for computation of the request file
78func (s *devSession) DoFileChangeRequest(filePath string, opts *ChangeRequestOpts) error {

Callers 2

RedirectionBundlerMethod · 0.80

Calls 4

FindBundleKeyMethod · 0.80
OriginalFilePathMethod · 0.65
ReloadSignalMethod · 0.65

Tested by 1