amplitude / amplitude/Amplitude-TypeScript

Offer a modern build without ES5 transpilation

未關閉
#785 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement
主要語言
TypeScript
星號
180
分支
68
平均合併
3 天 1 小時
30 天內合併 PR
29

描述

## Summary

Requesting a build of the Amplitude Browser SDK that does not transpile syntax supported by most browsers for a few years.

## Motivations

My employer is using Amplitude, and we've noticed that the Amplitude TypeScript Browser SDK is compiling post-ES5 syntax (classes, async/await, rest args, etc) to ES5-compatible syntax. This works, but adds additional network I/O for our users (we do not support pre ES2015 JS engines).

We'd like to request that the npm package begin publishing non-transpiled standard JavaScript as an additional option, in addition to the CJS and ESM builds.

## Screenshots

### Example of build output set to target: es5
image

### Example of build output set to target: es2020
image

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。