Change default value of import_extension to none from .js.
In v1, we generate code using .js extension which is the spec compliant way (and has been for sometime) of importing js files. Node, TS, and browsers support this but bundlers still haven't caught up with it. Users filed several issues related to this.
With this change, the default will work in most places and where users do need them it can be configured using the import_extension=.js plugin option.
[!IMPORTANT]
This change affects all plugins written using protoplugin when they upgrade to v2.
Change default value of
import_extension
tonone
from.js
.In v1, we generate code using
.js
extension which is the spec compliant way (and has been for sometime) of importing js files. Node, TS, and browsers support this but bundlers still haven't caught up with it. Users filed several issues related to this.With this change, the default will work in most places and where users do need them it can be configured using the
import_extension=.js
plugin option.