Tired of lengthy build times slowing down your development workflow? Processing large JavaScript and TypeScript projects can be a bottleneck, but with esbuild's blazing-fast performance, you don't have to compromise. Now, you can access the power of esbuild even more easily by using esbuild.do, bringing high-performance bundling directly into your workflows as a simple API service via the revolutionary .do platform.
esbuild is renowned for its incredible speed when bundling and building JavaScript and TypeScript projects. Written in Go and designed for high parallelism, it outpaces many traditional bundlers. But integrating esbuild, while straightforward, still requires managing its installation and environment.
esbuild.do changes the game. It provides esbuild's robust capabilities as a Service-as-Software available through the .do platform. This means you can leverage esbuild's speed without needing to install it directly on your machine or build environment.
The .do platform enables you to access powerful tools and services as simple "agents" that you can interact with programmatically. esbuild.do is one such agent. You can invoke its actions, like bundle, by sending inputs (your code details and esbuild options) and receiving outputs (the bundled code or build results) via a straightforward API call.
Think of it like calling a function in the cloud. You provide the necessary information, and esbuild.do performs the bundling operation with esbuild's speed and efficiency, returning the result to you.
The power of esbuild.do truly shines when integrated into your existing development and deployment workflows. Whether you're setting up a CI/CD pipeline, automating local builds, or even building agentic workflows that require code processing, esbuild.do provides a readily available, high-speed bundling solution.
Here's a quick look at how easy it is to use esbuild.do via the .do platform using their SDK:
import { Agent } from 'agent.do';
const agent = new Agent();
async function bundleMyCode(inputPath: string, outputPath: string) {
const result = await agent.do({
agent: 'esbuild.do',
action: 'bundle',
inputs: {
entryPoints: [inputPath],
outfile: outputPath,
bundle: true,
minify: true
}
});
console.log('Bundle created:', result.outputs.outfile);
}
bundleMyCode('src/index.js', 'dist/bundle.js');
In this example, we're using the .do SDK to interact with the esbuild.do agent. We specify the bundle action and pass standard esbuild options like entryPoints, outfile, bundle, and minify within the inputs object. The agent executes the esbuild command with these options and returns the results.
What is esbuild.do?
esbuild.do provides esbuild's bundling and build capabilities as a simple API service, allowing you to integrate high-speed JavaScript and TypeScript processing into your workflows without managing the esbuild installation or environment directly.
How do I specify esbuild options?
You can use standard esbuild bundling options by passing them as inputs to the do method of the Agent, such as entryPoints, outfile, bundle, minify, and more.
What are the performance benefits of using esbuild.do?
esbuild.do is designed for high performance. By leveraging esbuild's highly parallel architecture and written in Go, it can significantly reduce your build times compared to traditional bundlers.
How do I integrate esbuild.do into my project?
esbuild.do is delivered as a Service-as-Software via the .do platform, offering ease of integration through simple API calls or SDKs, similar to invoking a function.
If you're looking to dramatically speed up your JavaScript and TypeScript bundling and streamline your workflows, esbuild.do is a powerful solution. By providing esbuild's capabilities as an accessible service via the .do platform, it removes the friction of environment management while delivering top-tier performance.
Start exploring how esbuild.do can accelerate your development process today and experience lightning-fast bundling as a service!