未验证 提交 90448bc0 编写于 作者: fxy060608's avatar fxy060608 提交者: GitHub

Merge pull request #1196 from minh8023/optional-chaining

add optionalChaining
...@@ -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.
先完成此消息的编辑!
想要评论请 注册