On this page

The target of the external with a type, optionally with an 'interop' hint describing how its exports interoperate with ES module imports.

Type:"default" | "esModule"

How an external's exports interoperate with ES module imports, independent of the importing module's strictness (similar to Rollup's output.interop). 'default': treat as CommonJS, the default import is the whole exports (Node.js semantics). 'esModule': treat as an ES module namespace, the default import is unboxed to .default.