Support Mithril fragments with <></> syntax (#10)

* Support Mithril fragments with `<></>` syntax

* Use '[' for pragmaFrag
This commit is contained in:
David Wheatley 2021-05-10 12:23:08 +01:00 committed by GitHub
parent 8c2642b2f2
commit 3610f08d6b

View File

@ -40,7 +40,11 @@ module.exports = function (options = {}) {
['@babel/plugin-transform-runtime', { useESModules: true }],
['@babel/plugin-proposal-class-properties', { loose: true }],
['@babel/plugin-proposal-private-methods', { loose: true }],
['@babel/plugin-transform-react-jsx', { pragma: 'm' }],
['@babel/plugin-transform-react-jsx', {
pragma: 'm',
pragmaFrag: "'['",
useBuiltIns: true,
}],
],
},
},