In "module" mode, the server looks for the "module"/"esnext:main" fields in package.json for an ES module. Also, it redirects to the real file path so that relative imports work.