diff --git a/packages/bundle-uploader/src/upload-browser-package.ts b/packages/bundle-uploader/src/upload-browser-package.ts index e653f1b833..37cb92d78c 100644 --- a/packages/bundle-uploader/src/upload-browser-package.ts +++ b/packages/bundle-uploader/src/upload-browser-package.ts @@ -102,8 +102,7 @@ export class TypeSpecBundledPackageUploader { const blob = this.#container.getBlockBlobClient( normalizePath(join(pkgName, version, file.filename)) ); - const content = file.content; - await blob.upload(content, content.length, { + await blob.uploadData(Buffer.from(file.content), { blobHTTPHeaders: { blobContentType: "application/javascript; charset=utf-8", },