A Rolldown plugin for deploying applications with Zephyr Cloud. This plugin enables seamless deployment of your Rolldown-built applications to Zephyr's global edge network.
For more information, please refer to our documentation for rolldown.
Note: This plugin is currently in development (WIP - Work In Progress).
# npm
npm install --save-dev zephyr-rolldown-plugin
# yarn
yarn add --dev zephyr-rolldown-plugin
# pnpm
pnpm add --dev zephyr-rolldown-plugin
# bun
bun add --dev zephyr-rolldown-pluginAdd the plugin to your Rolldown configuration:
// rolldown.config.mjs
import { defineConfig } from 'rolldown';
import { withZephyr } from 'zephyr-rolldown-plugin';
export default defineConfig({
input: 'src/main.tsx',
plugins: [
{
name: 'emit-html',
generateBundle() {
const html = `
<html>
<body>
<div id="root"></div>
<script type="module" src="./main.js"></script>
</body>
</html>
`;
this.emitFile({
type: 'asset',
fileName: 'index.html',
source: html,
});
},
},
withZephyr(), // Add Zephyr plugin
],
});// rolldown.config.ts
import { defineConfig } from 'rolldown';
import { withZephyr } from 'zephyr-rolldown-plugin';
export default defineConfig({
input: 'src/main.tsx',
plugins: [
// ... other plugins
withZephyr(),
],
});- π Automatic deployment during build
- π¦ Asset optimization and bundling with Rolldown
- π§ Zero-config setup
- π Build analytics and monitoring
- π Global CDN distribution
- β‘ Fast builds with Rolldown's Rust-based bundler
- Install the plugin in your Rolldown project
- Add it to your Rolldown configuration
- Build your application as usual
- Your app will be automatically deployed to Zephyr Cloud
Add these scripts to your package.json:
{
"scripts": {
"dev": "rolldown --watch",
"build": "rolldown",
"build:prod": "NODE_ENV=production rolldown"
}
}- Rolldown (latest version)
- Node.js 18 or higher
- Zephyr Cloud account (sign up at zephyr-cloud.io)
This plugin is currently in active development. Features and API may change as Rolldown evolves. We're working closely with the Rolldown team to ensure optimal integration.
Check out our examples directory for complete working examples:
- rolldown-react - Basic React setup with Rolldown and Zephyr
We welcome contributions! Please read our contributing guidelines for more information.
Licensed under the Apache-2.0 License. See LICENSE for more information.
