wip: compileScriptSetup

This commit is contained in:
Evan You
2020-07-06 15:56:24 -04:00
parent 1ad3f975ed
commit 1359cc3a28
8 changed files with 252 additions and 14 deletions

View File

@@ -13,6 +13,18 @@ export * from './escapeHtml'
export * from './looseEqual'
export * from './toDisplayString'
/**
* List of @babel/parser plugins that are used for template expression
* transforms and SFC script transforms. By default we enable proposals slated
* for ES2020. This will need to be updated as the spec moves forward.
* Full list at https://babeljs.io/docs/en/next/babel-parser#plugins
*/
export const babelParserDefautPlugins = [
'bigInt',
'optionalChaining',
'nullishCoalescingOperator'
]
export const EMPTY_OBJ: { readonly [key: string]: any } = __DEV__
? Object.freeze({})
: {}