Home > ember-asset-size-report > Bundle
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Asset size stats relating to a specific client-side JS bundle
Signature:
declare class Bundle
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(project, bundleName) | (BETA) Create a new bundle |
| Property | Modifiers | Type | Description |
|---|---|---|---|
| contents | string |
(BETA) The contents of the entire bundle | |
| name | string |
(BETA) The name of this bundle | |
| project | EmberProject |
(BETA) The project that this bundle belongs to | |
| sizes | BundleSizes |
(BETA) Size information pertaining to this bundle |
| Method | Modifiers | Description |
|---|---|---|
| addFile(file) | (BETA) Explicitly add a file to this bundle | |
| calculateSizes() | (BETA) Determine the sizes of all of the files within the bundle, such that the summation of the bundle’s contents add up to the total size of the bundle. | |
| prepareStats(data) | (BETA) Prepare a stats report with asset size data pertaining to this module |