Skip to content

Commit 8adc08a

Browse files
zahramajdpi0
authored andcommitted
fix(module): nuxt 2.4 compatibility (#44)
1 parent 39223c7 commit 8adc08a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/module.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ function extendConfig (config, options) {
9595
})
9696

9797
// Transpile framework7 (es builds are not being transpiled)
98-
const babel = config.module.rules.find(r => r.test + '' === '/\\.jsx?$/')
98+
const babel = config.module.rules.find(r => (r.test + '').includes('.jsx'))
9999
babel.exclude = /node_modules(?![\\/](framework7|framework7-vue|template7|dom7)[\\/])/
100100
}
101101

0 commit comments

Comments
 (0)