-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ensure that base level languages etc are brought in before
- Loading branch information
1 parent
37d8fb9
commit b2f789c
Showing
1 changed file
with
20 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,38 @@ | ||
// @ts-nocheck - We're adding this here because there are no types for the prismjs package even after installing the @types/prismjs package | ||
;(async () => { | ||
// import languages with no extends() | ||
await Promise.all([ | ||
import('prismjs/components/prism-csharp'), | ||
import('prismjs/components/prism-cshtml'), | ||
import('prismjs/components/prism-dart'), | ||
import('prismjs/components/prism-clike'), | ||
import('prismjs/components/prism-elixir'), | ||
import('prismjs/components/prism-fortran'), | ||
import('prismjs/components/prism-fsharp'), | ||
import('prismjs/components/prism-java'), | ||
import('prismjs/components/prism-julia'), | ||
import('prismjs/components/prism-kotlin'), | ||
import('prismjs/components/prism-lua'), | ||
import('prismjs/components/prism-markup'), | ||
import('prismjs/components/prism-php'), | ||
import('prismjs/components/prism-powershell'), | ||
import('prismjs/components/prism-r'), | ||
import('prismjs/components/prism-ruby'), | ||
import('prismjs/components/prism-rust'), | ||
import('prismjs/components/prism-scala'), | ||
import('prismjs/components/prism-solidity'), | ||
import('prismjs/components/prism-swift'), | ||
import('prismjs/components/prism-visual-basic'), | ||
import('prismjs/components/prism-zig'), | ||
]) | ||
|
||
// import languages that extend base languages | ||
await Promise.all([ | ||
import('prismjs/components/prism-csharp'), | ||
import('prismjs/components/prism-dart'), | ||
import('prismjs/components/prism-fsharp'), | ||
import('prismjs/components/prism-java'), | ||
import('prismjs/components/prism-kotlin'), | ||
import('prismjs/components/prism-ruby'), | ||
import('prismjs/components/prism-solidity'), | ||
]) | ||
|
||
// import next level of languages | ||
await Promise.all([ | ||
import('prismjs/components/prism-cshtml'), | ||
import('prismjs/components/prism-scala'), | ||
]) | ||
})() | ||
|
||
export {} |