Skip to content
loading...

re: Disadvantages of Javascript import VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Maybe an aproach you like is import * as utils from './util.js' so you can do smothing like utils.thisUtilFunc(123)
 

Wow, I forgot that was even a thing! I think I read about the syntax originally and then found out about how 'bare' imports aren't supported in browsers, and in the long quest to find a transpiler solution I forgot about it. Although this still has the downside of not making them available in devtools.

code of conduct - report abuse