タグ

関連タグで絞り込む (0)

  • 関連タグはありません

タグの絞り込みを解除

Bunに関するShisamaのブックマーク (1)

  • JavaScript Macros in Bun | Bun Blog

    Two weeks ago, we launched our new JavaScript bundler in Bun v0.6.0. Today we're releasing a new feature that highlights the tight integration between Bun's bundler and runtime: Bun Macros. Macros are a mechanism for running JavaScript functions at bundle-time. The value returned from these functions are directly inlined into your bundle. As a toy example, consider this simple function that return

    Shisama
    Shisama 2023/06/05
    マクロ関数はバンドル時に実行されるJavaScript関数のことで、返り値がバンドルファイルにインライン化される。たとえば、バンドル時にfetchした結果をバンドルファイルに挿入することができる
  • 1