Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
adam-sajko opened this issue May 8, 2024 · 1 comment
Open

Comments

@adam-sajko
Copy link

adam-sajko commented May 8, 2024

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.

@siddhsuresh
Copy link
Member

thanks for the issue @adam-sajko, would you like to work on exposing this?

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

No branches or pull requests

2 participants