diff --git a/lib/module.js b/lib/module.js index 05ab6f3..cae67d9 100644 --- a/lib/module.js +++ b/lib/module.js @@ -95,7 +95,7 @@ function extendConfig (config, options) { }) // Transpile framework7 (es builds are not being transpiled) - const babel = config.module.rules.find(r => r.test + '' === '/\\.jsx?$/') + const babel = config.module.rules.find(r => (r.test + '').includes('.jsx')) babel.exclude = /node_modules(?![\\/](framework7|framework7-vue|template7|dom7)[\\/])/ }