NpmIntellisense icon indicating copy to clipboard operation
NpmIntellisense copied to clipboard

added es6 destructuring setting

Open standingdreams opened this issue 7 years ago • 1 comments

Adds a new user setting that gives users the option to set an es6 import with or without destructuring.

  • With destructuring, the module is imported per usual.
  • Without destructuring, the module takes the name of the module, removes any dashes, and uses the output as the name for the import.

Considerations

  • Should name be camel cased?
  • If so, should it be an option?
  • Should naming the module be left to the user? If so, I'm unsure how to set tab stops.

standingdreams avatar Jan 26 '18 10:01 standingdreams

I would love to see this get merged. Destructured importing of large packages can really bloat up your built packages without additional tree shaking which is not an option for many people yet.

dkadrios avatar Jul 10 '19 20:07 dkadrios