1
0
mirror of https://github.com/flarum/core.git synced 2025-07-16 14:26:25 +02:00

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,
}],
],
},
},