提交 ecb170d6 编写于 作者: M Minh

add optionalChaining

上级 ec98db2a
...@@ -81,6 +81,7 @@ createPage(Page) ...@@ -81,6 +81,7 @@ createPage(Page)
} = traverse(parser.parse(content, { } = traverse(parser.parse(content, {
sourceType: 'module', sourceType: 'module',
plugins: [ plugins: [
'optionalChaining',
'typescript', 'typescript',
['decorators', { ['decorators', {
decoratorsBeforeExport: true decoratorsBeforeExport: true
......
...@@ -66,6 +66,7 @@ module.exports = function (content, map) { ...@@ -66,6 +66,7 @@ module.exports = function (content, map) {
} = traverse(parser.parse(content, { } = traverse(parser.parse(content, {
sourceType: 'module', sourceType: 'module',
plugins: [ plugins: [
'optionalChaining',
'typescript', 'typescript',
['decorators', { ['decorators', {
decoratorsBeforeExport: true decoratorsBeforeExport: true
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册