diff --git a/src/Bundle.ts b/src/Bundle.ts index 812c415..2ae9da1 100644 --- a/src/Bundle.ts +++ b/src/Bundle.ts @@ -87,6 +87,21 @@ export default class Bundle { return Object.isFrozen(this[filesSymbol]); } + /** + * Returns a copy of the current list of buffers + * that have been added to the class. + * + * It does not include translation files, manifest + * and signature. + * + * Final files list might differ due to export + * conditions. + */ + + public get files() { + return Object.keys(this[filesSymbol]); + } + /** * Allows files to be added to the bundle. * If the bundle is closed, it will throw an error.