Documentation ¶
Index ¶
- type MockPackedComponent
- func (m *MockPackedComponent) BundleKey() string
- func (m *MockPackedComponent) Dependencies() []*jsparse.ImportDependency
- func (m *MockPackedComponent) IsStaticResource() bool
- func (m *MockPackedComponent) JsDocument() jsparse.JSDocument
- func (m *MockPackedComponent) Name() string
- func (m *MockPackedComponent) OriginalFilePath() string
- func (m *MockPackedComponent) Repack() error
- func (m *MockPackedComponent) RepackForWaitGroup(wg *sync.WaitGroup) error
- func (m *MockPackedComponent) WebWrapper() webwrap.JSWebWrapper
- type MockPacker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockPackedComponent ¶
type MockPackedComponent struct { WasRepacked bool Depends []*jsparse.ImportDependency FilePath string Key string RealName string }
func (*MockPackedComponent) BundleKey ¶
func (m *MockPackedComponent) BundleKey() string
func (*MockPackedComponent) Dependencies ¶
func (m *MockPackedComponent) Dependencies() []*jsparse.ImportDependency
func (*MockPackedComponent) IsStaticResource ¶ added in v0.7.0
func (m *MockPackedComponent) IsStaticResource() bool
func (*MockPackedComponent) JsDocument ¶ added in v0.21.0
func (m *MockPackedComponent) JsDocument() jsparse.JSDocument
func (*MockPackedComponent) Name ¶
func (m *MockPackedComponent) Name() string
func (*MockPackedComponent) OriginalFilePath ¶
func (m *MockPackedComponent) OriginalFilePath() string
func (*MockPackedComponent) Repack ¶
func (m *MockPackedComponent) Repack() error
func (*MockPackedComponent) RepackForWaitGroup ¶
func (m *MockPackedComponent) RepackForWaitGroup(wg *sync.WaitGroup) error
func (*MockPackedComponent) WebWrapper ¶
func (m *MockPackedComponent) WebWrapper() webwrap.JSWebWrapper
type MockPacker ¶
func (*MockPacker) PackMany ¶
func (m *MockPacker) PackMany(pages []string) ([]srcpack.PackComponent, error)
func (*MockPacker) PackSingle ¶
func (m *MockPacker) PackSingle(logger log.Logger, file string) (srcpack.PackComponent, error)
func (*MockPacker) ReattachLogger ¶
func (m *MockPacker) ReattachLogger(logger log.Logger) srcpack.Packer
Click to show internal directories.
Click to hide internal directories.