top | item 44945796

(no title)

throwitaway1123 | 6 months ago

Alternatively, with namespace imports in JS you can write [1]:

  import * as someLibrary from "some-library"
  someLibrary.someFunction()
Which works pretty well with IDE autocomplete in my experience.

[1] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

discuss

order

Sammi|6 months ago

This is a non starter for anything you want to publish online, as it breaks tree shaking which will cause size bloat and therefore slow loading.