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:
@ -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,
|
||||
}],
|
||||
],
|
||||
},
|
||||
},
|
||||
|
Reference in New Issue
Block a user