amplitude / amplitude/Amplitude-TypeScript

Offer a modern build without ES5 transpilation

Đang mở
#785 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
TypeScript
Star
180
Fork
68
Merge trung bình
3 ngày 1 giờ
Pull request đã merge (30 ngày)
29

Mô tả

## 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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.