0.0.45 ā€¢ Published 2 months ago

@hattip/bundler-vercel v0.0.45

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

@hattip/bundler-vercel

Hattip bundler for Vercel Serverless Functions and Vercel Edge Functions. It uses esbuild behind the scenes.

CLI

hattip-vercel
    Bundle a Hattip app for Vercel

Options:
  -o, --outputDir <path>   Root directory of the app
  -c, --clearOutputDir     Clear the output directory before bundling
  -s, --staticDir <path>   Static directory to copy to output
  -e, --edge <path>        Edge function entry file
  -S, --serverless <path>  Serverless function entry file
  -h, --help               Display this message
  -v, --version            Display version number

The edge function entry should be in the following form:

import adapterVercel from "@hattip/adapter-vercel-edge";
import handler from "./handler.js";

export default adapterVercel(handler);

The serverless function entry should be in the following form:

import { createMiddleware } from "@hattip/adapter-node";
import handler from "./handler.js";

export default createMiddleware(handler, { trustProxy: true });

The bundler output (by default .vercel/output) is compatible with the Vercel Build Output API (v3).

JavaScript API

šŸš§ TODO šŸš§

Refer to the TypeScript for the time being.

0.0.45

2 months ago

0.0.44

2 months ago

0.0.43

3 months ago

0.0.42

3 months ago

0.0.41

4 months ago

0.0.40

4 months ago

0.0.39

4 months ago

0.0.38

4 months ago

0.0.37

4 months ago

0.0.36

4 months ago

0.0.35-canary.2

10 months ago

0.0.35-canary.7

9 months ago

0.0.35-canary

10 months ago

0.0.35

8 months ago

0.0.34

12 months ago

0.0.32

1 year ago

0.0.33

1 year ago

0.0.30

1 year ago

0.0.31

1 year ago

0.0.28

1 year ago

0.0.29

1 year ago

0.0.21

2 years ago

0.0.22

2 years ago

0.0.23

1 year ago

0.0.24

1 year ago

0.0.25

1 year ago

0.0.26

1 year ago

0.0.27

1 year ago

0.0.20

2 years ago

0.0.18

2 years ago

0.0.19

2 years ago

0.0.17

2 years ago

0.0.16

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago