-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
cannot specify build target #2565
Comments
Currently, SvelteKit fixes that to kit/packages/kit/src/core/build/index.js Line 463 in e7df4d9
I'm not sure the reason for that as it was written 7 months ago, but I think it may be safe to remove it since adapters have another step to further bundle it with another target. It probably won't be a breaking change as the default target value by Vite is lower than es2018. |
This PR by @GrygrFlzr is the one introduced As I see it, es2018+ is there to support async/await syntax. Does it mean that we can simply change the value to |
Just found that one of yesterday's PRs (#2604) partially solved the issue. Now the target is |
Thanks for digging into this @gunggmee. I think we should allow |
@bluwy Thanks for helpful comment. Just made a draft PR. Could you please take a look at it, and let me know if this is a good way to go? |
Describe the bug
while running
svelte-kit build
i cannot set the build target, it says"build_server: The value for kit.vite.build.target specified in svelte.config.js has been ignored. This option is controlled by SvelteKit."
and when i then try to build a project where i use BigInt it says
"> Transform failed with 1 error: app.js:2052:9: error: Big integer literals are not available in the configured target environment ("es2018")"
Reproduction
index.js
file insrc/routes
and fill it withLogs
System Info
Severity
serious, but I can work around it
Additional Information
no additional information
The text was updated successfully, but these errors were encountered: