DoBundleKeyChangeRequest processes a change request for a bundle key
(bundleKey string, opts *ChangeRequestOpts)
| 60 | |
| 61 | // DoBundleKeyChangeRequest processes a change request for a bundle key |
| 62 | func (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 |
| 78 | func (s *devSession) DoFileChangeRequest(filePath string, opts *ChangeRequestOpts) error { |