diff --git a/docs/cubing/index.html b/docs/cubing/index.html index 308f437e1..395f86c8f 100644 --- a/docs/cubing/index.html +++ b/docs/cubing/index.html @@ -130,6 +130,15 @@
npm
packagenpm
package should work with any modern bundlers and tools. If you are having trouble, make sure your tool is compatible with ES2020 syntax. We recommend using esbuild
or tools based on esbuild
, and you may find this project template a helpful start.
+
+ By default, Vite, an esbuild
-based bundler, transpiles code to ES2019. To use the npm
package with Vite, add this to your vite.config.js
:
+
+ export default {build: {target: "es2020"}}
+
+