File tree Expand file tree Collapse file tree 4 files changed +23
-8
lines changed
Expand file tree Collapse file tree 4 files changed +23
-8
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " esbuild-cf-functions-plugin " : minor
3+ ---
4+
5+ Initial release
Original file line number Diff line number Diff line change 11# ` esbuild-cf-functions-plugin `
22
3- <!--
4- [](https://www.npmjs.com/package/NAME_HERE)
5- 
6- 
7- [](https://app.codecov.io/github/BeeeQueue/NAME_HERE)
8- -->
3+ [ ![ npm] ( https://img.shields.io/npm/v/esbuild-cf-functions-plugin )] ( https://www.npmjs.com/package/esbuild-cf-functions-plugin )
4+ ![ node-current] ( https://img.shields.io/node/v/esbuild-cf-functions-plugin )
5+ ![ esbuild-current] ( https://img.shields.io/badge/esbuild-^0.14.46-green )
6+ [ ![ Codecov] ( https://img.shields.io/codecov/c/github/BeeeQueue/esbuild-cf-functions-plugin?token=TOKEN_HERE )] ( https://app.codecov.io/github/BeeeQueue/esbuild-cf-functions-plugin )
97
108This plugin configures ESBuild for building code [ compatible] [ runtime ] with [ CloudFront Functions] [ cf-functions ] .
119
12- As can be seen in the documentation CloudFront Functions do not run on Node, but on AWS's custom JS runtime.
10+ As can be seen in the documentation, CloudFront Functions do not run on Node, but on AWS's custom JS runtime.
1311
14- According to them it
12+ According to them, it
1513
1614> ... is compliant with ECMAScript (ES) version 5.1 and also supports some features of ES versions 6 through 9.
1715
Original file line number Diff line number Diff line change 1+ # Redirect example
2+
3+ This example shows a set up where a TypeScript function is build and deployed to CloudFront Functions via Terraform!
4+
5+ The function does one thing: if the path starts with ` /foo* ` it will redirect it to ` /bar* ` .
6+
7+ This can be tested by visiting the URL below and seeing the path change from ` /foo/nebula.webp ` to ` /bar/nebula.webp ` !
8+
9+ https://d31lz94z7iimag.cloudfront.net/foo/nebula.webp
Original file line number Diff line number Diff line change 3737 "release" : " pnpm build && pnpm changeset publish" ,
3838 "prepare" : " simple-git-hooks"
3939 },
40+ "peerDependencies" : {
41+ "esbuild" : " ^0.14.46"
42+ },
4043 "devDependencies" : {
4144 "@beequeue/eslint-plugin" : " 0.6.0" ,
4245 "@changesets/changelog-github" : " 0.4.5" ,
You can’t perform that action at this time.
0 commit comments