<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/bundling-javascript-in-swift-projects-using-esbuild-ptvb7sfls" -->

---
title: Bundling Javascript in Swift projects using ESBuild
description: A new Swift Package called SwiftyESBuild lets developers bundle JavaScript using ESBuild directly from Swift projects, without needing to install Node.js. It...
canonical: https://daily.dev/posts/bundling-javascript-in-swift-projects-using-esbuild-ptvb7sfls
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Bundling Javascript in Swift projects using ESBuild | daily.dev
og:description: A new Swift Package called SwiftyESBuild lets developers bundle JavaScript using ESBuild directly from Swift projects, without needing to install Node.js. It...
og:url: https://daily.dev/posts/bundling-javascript-in-swift-projects-using-esbuild-ptvb7sfls
og:image: https://api.daily.dev/og/posts/PtVB7sFLS.png
og:image:alt: Bundling Javascript in Swift projects using ESBuild
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Bundling Javascript in Swift projects using ESBuild

**[
      Tuist
    ](https://daily.dev/sources/tuist-blog)** · 3 min read · 0 upvotes · 0 comments

## Summary

A new Swift Package called SwiftyESBuild lets developers bundle JavaScript using ESBuild directly from Swift projects, without needing to install Node.js. It integrates with frameworks like Vapor and Publish, letting users add it as a dependency, pin an ESBuild version, and run bundling commands via a Swift API. Future plans include adding usage examples and building a companion package around Orogene to resolve NPM packages without Node.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://tuist.dev/blog/2023/06/23/introducing-swiftyesbuild>

## Questions this post answers

### How can I bundle JavaScript in a Swift project without installing Node.js?

SwiftyESBuild is a Swift Package that wraps ESBuild so Swift projects can bundle JavaScript without a separate Node.js installation. Add it as a dependency, create a SwiftyESBuild instance with a pinned version, and call the run function with options like .bundle and .outfile to generate production-ready artifacts or watch files for changes.

_Developers wiring JS bundling into Swift backends can track new tooling releases like this on daily.dev._

## Similar posts on daily.dev

- [Migrating a Rails App From Sprockets to JS Bundling With Esbuild - FastRuby.io](https://daily.dev/posts/migrating-a-rails-app-from-sprockets-to-js-bundling-with-esbuild---fastruby-io-rpjdmjyyn) · RUBYLAND · 0 upvotes · 0 comments

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#javascript](https://daily.dev/tags/javascript), [#swift](https://daily.dev/tags/swift)

[View this post on daily.dev](https://daily.dev/posts/bundling-javascript-in-swift-projects-using-esbuild-ptvb7sfls)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Bundling Javascript in Swift projects using ESBuild","url":"https://daily.dev/posts/bundling-javascript-in-swift-projects-using-esbuild-ptvb7sfls","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/bundling-javascript-in-swift-projects-using-esbuild-ptvb7sfls"},"datePublished":"2026-08-23T12:20:07.200Z","dateModified":"2026-08-23T12:38:27.515Z","description":"A new Swift Package called SwiftyESBuild lets developers bundle JavaScript using ESBuild directly from Swift projects, without needing to install Node.js. It...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/7478685336b6796d43ce1d0d058e0327?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/7478685336b6796d43ce1d0d058e0327?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"\n      Tuist\n    ","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"\n      Tuist\n    ","logo":"https://media.daily.dev/image/upload/s--3AYDH23h--/f_auto,q_auto/v1787487506/logos/tuist-blog?_a=BAMAMicg0","url":"https://daily.dev/sources/tuist-blog"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/bundling-javascript-in-swift-projects-using-esbuild-ptvb7sfls","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"webdev,javascript,swift","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"\n      Tuist\n    ","item":"https://daily.dev/sources/tuist-blog"},{"@type":"ListItem","position":3,"name":"Bundling Javascript in Swift projects using ESBuild"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/bundling-javascript-in-swift-projects-using-esbuild-ptvb7sfls#faq","mainEntity":[{"@type":"Question","name":"How can I bundle JavaScript in a Swift project without installing Node.js?","acceptedAnswer":{"@type":"Answer","text":"SwiftyESBuild is a Swift Package that wraps ESBuild so Swift projects can bundle JavaScript without a separate Node.js installation. Add it as a dependency, create a SwiftyESBuild instance with a pinned version, and call the run function with options like .bundle and .outfile to generate production-ready artifacts or watch files for changes. Developers wiring JS bundling into Swift backends can track new tooling releases like this on daily.dev."}}]}
```

