You can use babel using the @bundless/plugin-babel
package
1// bundless.config.js2const { BabelPlugin } = require('@bundless/plugin-babel')34module.exports = {5plugins: [6BabelPlugin({7babelOptions: {8plugins: [require('babel-plugin-macros')],9},10}),11],12}
Notice that you will need to pass your babel options explicitly and not using .babelrc
files
This API design choice has been made because usually .babelrc files contain babel presets that transpile jsx to js but this is already done in bundless, you only need to pass some specific plugins that you need