Skip to content

Conversation

@Timeless0911
Copy link
Contributor

@Timeless0911 Timeless0911 commented Aug 12, 2025

Summary

Since Rstack no longer supports Node 16, we can update build configs to lib ES2022.

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings August 12, 2025 08:44
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates TypeScript and build configurations to target ES2022 instead of ES2020/ES2021, aligning with the decision to drop Node 16 support from Rstack.

  • Updates TypeScript compiler options (target and lib) from ES2020/ES2021 to ES2022 across all configuration files
  • Updates build syntax configurations from node 16 to es2022 in rslib configurations
  • Adds missing target properties to some TypeScript configurations for consistency

Reviewed Changes

Copilot reviewed 25 out of 25 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/e2e/react-component/tsconfig.json Updates target and lib from ES2020 to ES2022
scripts/tsconfig/base.json Updates module from ES2020 to ES2022
packages/plugin-dts/rslib.config.ts Changes syntax from node 16 to es2022
packages/create-rslib/template-*/tsconfig.json Updates lib arrays from ES2020/ES2021 to ES2022
packages/create-rslib/rslib.config.ts Adds es2022 syntax configuration
packages/create-rslib/fragments/base/*/tsconfig.json Updates lib and adds missing target properties
packages/core/rslib.config.ts Updates syntax from node 16 to es2022 and improves type imports
examples/*/tsconfig.json Updates target and lib from ES2020 to ES2022

@Timeless0911 Timeless0911 changed the title feat: update tsconfig.json and build configs to target ES2022 feat: update tsconfig.json and build configs to ES2022 Aug 12, 2025
@Timeless0911 Timeless0911 merged commit 47fd989 into main Aug 12, 2025
14 checks passed
@Timeless0911 Timeless0911 deleted the es2022 branch August 12, 2025 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants