Skip to content

chore(tsconfig): upgrade TypeScript target to ES2020 and drop IE 11 #104

Description

@luojiyin1987

背景

当前 tsconfig.jsontargetES6browserslist 仍包含 IE 11。IE 11 已于 2022 年停止支持,且项目使用的 Web Components、Service Worker 等特性 IE 11 均不支持。

改动

  1. tsconfig.json: target 从 ES6 升级到 ES2020
  2. package.json: browserslist 移除 IE 11

影响

  • TypeScript 不再注入 __generator__awaiter 等 helper
  • 最终产物体积更小
  • Parcel 通过 swc 按 browserslist 做最终降级,不影响实际兼容性

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions