-
Notifications
You must be signed in to change notification settings - Fork 46
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
Cubing.js not working with vite #192
Comments
|
OK, I have found the location of one of those functions. In export function factorial(a: number): bigint {
let r = 1n;
while (a > 1) {
r *= BigInt(a);
a--;
}
return r;
} This is what is causing the failing build in vite. We can either change it to not use |
I have found a workaround for this in vite. The build fails because the default build target is import {UserConfig} from "vite";
const config: UserConfig = {
build: {
target: "es2020"
}
}
export default config |
IMO its impractical to change this to not use |
Scroll down to the third post in this thread to see the location of the issue, and the fourth post for a workaround
To Reproduce
Steps to reproduce the behavior:
cubing.js
cubing.js
inindex.ts
Vite throws this error:
Expected behavior
cubing.js
is imported.Browser:
Screenshots
The text was updated successfully, but these errors were encountered: