Skip to content

Commit ca5c898

Browse files
author
Pooya Parsa
committed
misc: no longer need to babel hacks for f7 dependencies. fixes #15, #22.
1 parent 1589fe0 commit ca5c898

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

lib/module.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -159,19 +159,12 @@ function addTemplates (options) {
159159
// Extend webpack config
160160
// ----------------------------------------------------------
161161
function extendConfig (config, options) {
162-
// Don't exclude babel for F7 stuff
163-
const babelLoader = config.module.rules.find(r => r.loader === 'babel-loader')
164-
babelLoader.exclude = /node_modules\/(?!(framework7|framework7-vue|template7|dom7)\/).*/
165-
166162
// Increase performance check limits to 2M (non-gzipped)
167163
const MAX_SIZE = 2 * 1024 * 1024
168164
Object.assign(config.performance, {
169165
maxEntrypointSize: MAX_SIZE,
170166
maxAssetSize: MAX_SIZE
171167
})
172-
173-
// Disable warning for babel on framework7 dist files
174-
babelLoader.options.compact = false
175168
}
176169

177170
// ----------------------------------------------------------

0 commit comments

Comments
 (0)