avoid reformatting minified libraries
FND opened this issue · comments
FND commented
import "foo.min.js"
results in foo.min.js
being reformatted, thus introducing unnecessary whitespace (arguably when importing a minified library, we wanna keep it minified)
note that exclude
ing such libraries from transpilation circumvents the issue:
esnext: {
exclude: ["document-register-element"]
}