~~ {"unstableBytesImports":true,"unstableTextImports":true} ~~
# mod.ts
import data from "./a.ts" with { type: "bytes" };
import "./b.ts";

# a.ts
export {};

# b.ts
import "./a.ts"; // this should cause it to not be external

# output
{
  "roots": [
    "file:///mod.ts"
  ],
  "modules": [
    {
      "kind": "esm",
      "size": 11,
      "mediaType": "TypeScript",
      "specifier": "file:///a.ts"
    },
    {
      "kind": "esm",
      "dependencies": [
        {
          "specifier": "./a.ts",
          "code": {
            "specifier": "file:///a.ts",
            "resolutionMode": "import",
            "span": {
              "start": {
                "line": 0,
                "character": 7
              },
              "end": {
                "line": 0,
                "character": 15
              }
            }
          }
        }
      ],
      "size": 60,
      "mediaType": "TypeScript",
      "specifier": "file:///b.ts"
    },
    {
      "kind": "esm",
      "dependencies": [
        {
          "specifier": "./a.ts",
          "code": {
            "specifier": "file:///a.ts",
            "resolutionMode": "import",
            "span": {
              "start": {
                "line": 0,
                "character": 17
              },
              "end": {
                "line": 0,
                "character": 25
              }
            }
          },
          "assertionType": "bytes"
        },
        {
          "specifier": "./b.ts",
          "code": {
            "specifier": "file:///b.ts",
            "resolutionMode": "import",
            "span": {
              "start": {
                "line": 1,
                "character": 7
              },
              "end": {
                "line": 1,
                "character": 15
              }
            }
          }
        }
      ],
      "size": 67,
      "mediaType": "TypeScript",
      "specifier": "file:///mod.ts"
    }
  ],
  "redirects": {}
}
