You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ESM spec requires file extensions, but almost all developers expect to be able to
import{something}from'foo';
This is typically true of modules in node_modules, but this will break if you are trying to access a file in your own project. ex.
import{something}from'/components/footer/footer';
Details
The first case works because of the importMap but we should probably establish a singe default way of doing things, or at least clear explanation of when if we need to support both. Or maybe an opportunity for a plugin for extension-less files, like in webpack?
The text was updated successfully, but these errors were encountered:
Type of Change
Summary
The ESM spec requires file extensions, but almost all developers expect to be able to
This is typically true of modules in node_modules, but this will break if you are trying to access a file in your own project. ex.
Details
The first case works because of the
importMap
but we should probably establish a singe default way of doing things, or at least clear explanation of when if we need to support both. Or maybe an opportunity for a plugin for extension-less files, like in webpack?The text was updated successfully, but these errors were encountered: