提交 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
...@@ -140,4 +141,4 @@ createPage(Page) ...@@ -140,4 +141,4 @@ createPage(Page)
callback(err, content) callback(err, content)
}) })
} }
} }
...@@ -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
...@@ -127,4 +128,4 @@ module.exports = function (content, map) { ...@@ -127,4 +128,4 @@ module.exports = function (content, map) {
}, err => { }, err => {
callback(err, content, map) callback(err, content, map)
}) })
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册