blitz-js / blitz-js/blitz

Allow override of "target" for ES2016+ features in Custom Server

Open
#4,331 1 comment 2 reactions 0 assignees View on GitHub
status/triage
Dominant language
TypeScript
Stars
14.1k
Forks
803
PR merge metrics
No merged PRs in 30d

Description

https://github.com/blitz-js/blitz/blob/main/packages/blitz/src/cli/utils/next-utils.ts#L58
```
const getEsbuildOptions = (): esbuild.BuildOptions => {
return {
...
target: "es6",
...
}
}
```

The current implementation of getEsbuildOptions function hardcodes the target setting to "es6". This setting restricts the server from utilizing JavaScript features introduced in ES2016 and later versions. It would be beneficial to provide a mechanism that allows overriding the target option to support modern JavaScript features in a custom server environment.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.