Skip to content

Conversation

@Timeless0911
Copy link
Contributor

Summary

Set syntax to esnext in create-rslib to align with the default value we set.

Related Links

Checklist

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

@Timeless0911 Timeless0911 requested a review from fi3ework May 13, 2025 08:34
@Timeless0911 Timeless0911 enabled auto-merge (squash) May 13, 2025 08:51
Copy link
Member

@fi3ework fi3ework left a comment

Choose a reason for hiding this comment

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

FWIW: The syntax is set to esnext by default. However, we explicitly specify it in the template to make it clearer for users, as syntax is an important field for them to notice.

@Timeless0911 Timeless0911 merged commit 5e354db into main May 13, 2025
15 checks passed
@Timeless0911 Timeless0911 deleted the feat/syntax-tpl branch May 13, 2025 09:57
@chenjiahan
Copy link
Member

So why defaults to esnext?

@Timeless0911
Copy link
Contributor Author

So why defaults to esnext?

We are a modern build tool I think. What do you think of the default value of syntax?

@chenjiahan
Copy link
Member

For Node.js outputs, I prefer to align with the Node.js Maintenance LTS, currently Node.js 18.

When Node 18 reaches EOL, we can raise the default syntax to match Node 20.

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.

4 participants