Slash your JavaScript and TypeScript build times effortlessly by harnessing the power of esbuild directly within your workflows. Introducing esbuild.do, a seamless way to access esbuild's lightning-fast bundling and build capabilities as a simple, accessible API service through the .do platform.
esbuild is renowned for its incredible speed in bundling JavaScript and TypeScript code, often delivering performance gains orders of magnitude faster than traditional bundlers. It achieves this through a highly parallel architecture and being written in Go.
But integrating esbuild directly into every project or workflow can sometimes involve environment setup and configuration management. That's where esbuild.do comes in.
esbuild.do provides esbuild's powerful features as a Service-as-Software via the .do platform. This means you can leverage esbuild's speed and efficiency with a simple API call, without needing to install or manage esbuild directly within your local environment or build servers.
Integrating esbuild.do into your workflows is designed to be straightforward. Whether you're automating code deployment, processing front-end assets, or performing server-side bundling, esbuild.do fits neatly into your existing processes.
Think of it as invoking a function. You provide your source files and desired esbuild options, and esbuild.do handles the heavy lifting, returning the bundled and optimized output. This approach simplifies your build scripts and reduces dependencies.
esbuild.do is delivered as a Service-as-Software via the .do platform. You interact with it through simple API calls or SDKs, enabling you to seamlessly integrate esbuild's functionality into your applications or automation scripts.
Here's a quick example using the agent.do 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 agent.do SDK to invoke the esbuild.do agent with the bundle action. We pass standard esbuild bundling options like entryPoints, outfile, bundle, and minify within the inputs object.
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.
Stop waiting for slow builds. Embrace the speed and efficiency of esbuild with the ease of an API service. esbuild.do makes it simple to integrate high-performance JavaScript and TypeScript bundling into your workflows, allowing you to streamline your development process and reduce your build times.
Explore esbuild.do on the .do platform and experience the difference lightning-fast bundling can make.