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

Specify that es2020 is required #193

Merged
merged 6 commits into from
Jul 18, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions docs/cubing/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,15 @@ <h1><a href="#javascript"><code>npm</code> package</a></h1>
The <code>npm</code> 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 <a href="https://esbuild.github.io/"><code>esbuild</code></a> or tools based on <code>esbuild</code>, and you may find <a href="https://github.com/cubing/cubing-app-template">this project template</a> a helpful start.
</p>
</section>
<section id="vite">
<h1>Using with Vite</h1>
<p>
By default, <a href="https://vitejs.dev/">Vite</a>, an <code>esbuild</code>-based bundler, transpiles code to ES2019. To use the <code>npm</code> package with Vite, add this to your <code>vite.config.js</code>:
<code class="sample">
<span>export default {build: {target: "es2020"}}</span>
</code>
</p>
</section>

<section id="code-experiments">
<h1><a href="#code-experiments">Code Experiments</a></h1>
Expand Down