<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>thr3a</author_name>
  <author_url>https://blog.hatena.ne.jp/thr3a/</author_url>
  <blog_title>動かざることバグの如し</blog_title>
  <blog_url>https://blog.turai.work/</blog_url>
  <categories>
    <anon>typescript</anon>
  </categories>
  <description>環境 nodejs v24 typescript v5 まずはpathsとsubpath importsをそれぞれ押さえてみる。 paths paths は baseUrl か tsconfig.json を基準に、TypeScript の import と require の解決先を再マップする機能だ。 ただしこれはあくまで TypeScript 側の解決規則であって、実行時の Node.js にそのまま伝わるわけではない。 設定例 // tsconfig.json { &quot;compilerOptions&quot;: { &quot;target&quot;: &quot;ES2022&quot;, &quot;module&quot;: &quot;NodeNext&quot;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.turai.work%2Fentry%2F20260321%2F1774063648&quot; title=&quot;テスト書くならtsconfigのpathsじゃなくてsubpath imports使おうよ - 動かざることバグの如し&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-03-21 12:27:28</published>
  <title>テスト書くならtsconfigのpathsじゃなくてsubpath imports使おうよ</title>
  <type>rich</type>
  <url>https://blog.turai.work/entry/20260321/1774063648</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
