mirror of
https://github.com/flarum/framework.git
synced 2025-02-16 23:42:45 +08:00
Support Mithril fragments with <></>
syntax (#10)
* Support Mithril fragments with `<></>` syntax * Use '[' for pragmaFrag
This commit is contained in:
parent
8c2642b2f2
commit
3610f08d6b
|
@ -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,
|
||||
}],
|
||||
],
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user