feat: add support for running es6

This commit is contained in:
Hatem Hosny committed 2025-01-05 14:34:25 +02:00
1 parent 9609a67b1d
commit 5c28df9672
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -11,6 +11,7 @@ intro: |
A quick reference cheatsheet of what's new in JavaScript for ES2015, ES2016, ES2017, ES2018 and beyond
plugins:
- copyCode
- runCode
---
## Getting Started
+1 -1
View File
@@ -102,7 +102,7 @@
language = 'typescript';
}
const editorId = ['javascript', 'typescript', 'python', 'php'].includes(language)
const editorId = ['js', 'javascript', 'typescript', 'python', 'php'].includes(language)
? 'script'
: ['css', 'scss'].includes(language)
? 'style'