diff --git a/common/spaces/asset_bundle_space_primitives.ts b/common/spaces/asset_bundle_space_primitives.ts index 1445e299..bfbc3108 100644 --- a/common/spaces/asset_bundle_space_primitives.ts +++ b/common/spaces/asset_bundle_space_primitives.ts @@ -15,6 +15,7 @@ export class AssetBundlePlugSpacePrimitives implements SpacePrimitives { .map((p) => ({ name: p, contentType: this.assetBundle.getMimeType(p), + created: this.assetBundle.getMtime(p), lastModified: this.assetBundle.getMtime(p), perm: "ro", size: -1, @@ -31,6 +32,7 @@ export class AssetBundlePlugSpacePrimitives implements SpacePrimitives { data, meta: { contentType: this.assetBundle.getMimeType(name), + created: this.assetBundle.getMtime(name), lastModified: this.assetBundle.getMtime(name), size: data.byteLength, perm: "ro", @@ -45,6 +47,7 @@ export class AssetBundlePlugSpacePrimitives implements SpacePrimitives { const data = this.assetBundle.readFileSync(name); return Promise.resolve({ contentType: this.assetBundle.getMimeType(name), + created: this.assetBundle.getMtime(name), lastModified: this.assetBundle.getMtime(name), size: data.byteLength, perm: "ro",