Open giuem opened 5 years ago
AMD will be removed after v1.3.0
And enable babel loose mode will save a few bytes since code is cleaner. It also brings performance improvement. (e.g. for...of
)
gulp.task('minify-js', () => gulp.src('src/**/*.js')
.pipe(babel({
"presets": [
["@babel/env", {
"targets": configs.browsers,
+ "loose": true
}]
]
}))
BTW, I strongly recommend use bundlesize to trace the bundle size changes.
AMD will be removed after v1.3.0
8 months later it is still there 🕊️
- try { module.exports = DisqusJS; } catch (e) { }
+ export { DisqusJS }
As this article said,
We can remove AMD to save bytes as the article mentioned.