Skip to content

Commit 9c11764

Browse files
Merge pull request #3 from hzoo/patch-1
use star (wildcard) for plugins
2 parents 02d6a38 + 2bf7583 commit 9c11764

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/babel.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,7 @@ module.exports = {
8989
path.node.tag.type === 'CallExpression' ?
9090
code.substring(path.node.tag.arguments[0].start, path.node.tag.arguments[0].end) + ', ' :
9191
''
92-
}_m_ => <div className='_markdown_'>${newSrc}</div>)`, { plugins: [
93-
'jsx', 'flow', 'doExpressions', 'objectRestSpread', 'decorators', 'classProperties',
94-
'exportExtensions', 'asyncGenerators', 'functionBind', 'functionSent', 'dynamicImport' ]
92+
}_m_ => <div className='_markdown_'>${newSrc}</div>)`, { plugins: ['*']
9593
})
9694
path.replaceWith(transformed.program.body[0])
9795
}

0 commit comments

Comments
 (0)