Skip to content

Commit

Permalink
feat: add fields to default options
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Sep 17, 2023
1 parent 8382384 commit bc832c8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions composables/language/javascript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const babel: Parser<typeof Babel, Babel.ParserOptions> = {
configurable: true,
defaultValue: {
sourceType: 'module',
plugins: [],
},
editorLanguage: 'json',
},
Expand Down Expand Up @@ -49,6 +50,9 @@ const swc: Parser<typeof Swc, Swc.ParseOptions> = {
configurable: true,
defaultValue: {
syntax: 'ecmascript',
jsx: false,
decorators: false,
importAssertions: false,
},
editorLanguage: 'json',
},
Expand Down

0 comments on commit bc832c8

Please sign in to comment.