Closed joseprio closed 4 years ago
At the moment the generated JS module uses the commonJS syntax. It would be useful to have an option that would use the ES module syntax instead.
Old commonJS syntax prevents module concatenation in Webpack. It may help tree shaking in some cases too.
Happy to create a pull request if needed.
PR welcome
Done in master, release will be soon
Feature Proposal
At the moment the generated JS module uses the commonJS syntax. It would be useful to have an option that would use the ES module syntax instead.
Feature Use Case
Old commonJS syntax prevents module concatenation in Webpack. It may help tree shaking in some cases too.