Closed WuglyakBolgoink closed 3 years ago
Hallo guys!
I found some "feature bug" problem in our output bandle file.
Babel create x-same functions for each file which contain es6 class.
For example currently what we have:
Can anyone help me with that or say how I can reduce count of this functions?
PS: we use old angularJS files together with new es6 classes...
By default, Babel injects inline helpers in every file. You can use @babel/plugin-transform-runtime (and add @babel/runtime to your dependencies) to decuplicate them.
@babel/plugin-transform-runtime
@babel/runtime
Answered - https://github.com/babel/gulp-babel/issues/199#issuecomment-608409520
Hallo guys!
I found some "feature bug" problem in our output bandle file.
Babel create x-same functions for each file which contain es6 class.
For example currently what we have:
Can anyone help me with that or say how I can reduce count of this functions?
PS: we use old angularJS files together with new es6 classes...