From e183acc73c72efbf2d794b4fcab830aa97910017 Mon Sep 17 00:00:00 2001 From: Lucas Garron Date: Mon, 18 Jul 2022 03:57:09 -0700 Subject: [PATCH] [docs] Update Vite sample code. Even Vite 3 still seems to have issues: https://github.com/vitejs/vite/issues/9062#issuecomment-1187059553 --- docs/cubing/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/cubing/index.html b/docs/cubing/index.html index a51e15e32..e4612921f 100644 --- a/docs/cubing/index.html +++ b/docs/cubing/index.html @@ -131,10 +131,10 @@

Compatibility

The npm 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.

Known Issues

-

Vite 3 does not support full ES2020 by default. Use the following config:

+

Vite does not support full ES2020 by default. Use the following config:

// vite.config.js
-export default {build: {target: "es2020"}}; +export default { optimizeDeps: { esbuildOptions: { target: "es2020" } } };