Skip to content

Commit

Permalink
feat: support takeover mode for .cjs and .mjs
Browse files Browse the repository at this point in the history
close #1578
  • Loading branch information
johnsoncodehk committed Jul 16, 2022
1 parent a01ef46 commit 104f3e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/shared/src/common.ts
Expand Up @@ -9,6 +9,8 @@ export function sleep(ms: number) {
export function syntaxToLanguageId(syntax: string) {
switch (syntax) {
case 'js': return 'javascript';
case 'cjs': return 'javascript';
case 'mjs': return 'javascript';
case 'ts': return 'typescript';
case 'jsx': return 'javascriptreact';
case 'tsx': return 'typescriptreact';
Expand Down

0 comments on commit 104f3e6

Please sign in to comment.