chore: remove babelParserDefaultPlugins

The version of @babel/parser we are using now has these plugins enabled by default.
This commit is contained in:
Evan You
2021-10-07 19:32:59 -04:00
parent ed0071ac1a
commit 646e694f0a
7 changed files with 10 additions and 43 deletions

View File

@@ -1,5 +1,4 @@
import { parse } from '@babel/parser'
import { babelParserDefaultPlugins } from '@vue/shared'
import { transform } from '../src'
function assertCode(code: string) {
@@ -7,7 +6,7 @@ function assertCode(code: string) {
try {
parse(code, {
sourceType: 'module',
plugins: [...babelParserDefaultPlugins, 'typescript']
plugins: ['typescript']
})
} catch (e: any) {
console.log(code)