Skip to content

Commit cc461db

Browse files
author
Pooya Parsa
committed
fix: transpile framework7 es builds
1 parent 1a28183 commit cc461db

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: lib/module.js

+4
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ function extendConfig (config, options) {
9999
maxEntrypointSize: MAX_SIZE,
100100
maxAssetSize: MAX_SIZE
101101
})
102+
103+
// Transpile framework7 (es builds are not being transpiled)
104+
const babel = config.module.rules.find(r => r.test + '' === '/\\.jsx?$/')
105+
babel.exclude = /node_modules(?![\\/](framework7|framework7-vue)[\\/])/
102106
}
103107

104108
function addTemplates (options) {

0 commit comments

Comments
 (0)