4 ms·
Most browsers do support js modules today but it's kind of an awkward situation to say the least. And if you need to support older browsers you may as well not
by mattacular 5y ago
Most browsers do support js modules today but it's kind of an awkward situation to say the least. And if you need to support older browsers you may as well not bother, you probably use Webpack and/or Babel (or TypeScript) anyway for other reasons. Especially if you're trying to do isomorphic stuff for an SSR app, as NodeJS then has its own pile of idiosyncrasies and baggage around module support.
This situation has been playing out for many years and it has only gotten more confusing.