@netlify/edge-bundler
TypeScript icon, indicating that this package has built-in type declarations

12.2.3 • Public • Published

Build Node

Edge Bundler

Intelligently prepare Netlify Edge Functions for deployment.

Usage

  1. Install this module as a dependency in your project

    npm install @netlify/edge-bundler --save
    
  2. Import it and create a bundle from a directory of Edge Functions and a list of declarations.

    import { bundle } from '@netlify/edge-bundler'
    
    // List of directories to search for Edge Functions.
    const sourceDirectories = ['/repo/netlify/edge-functions', '/repo/.netlify/edge-functions']
    
    // Directory where bundle should be placed.
    const distDirectory = '/repo/.netlify/edge-functions-dist'
    
    // List of Edge Functions declarations.
    const declarations = [
      { function: 'user-1', path: '/blog/*' },
      { function: 'internal-2', path: '/' },
    ]
    
    await bundle(sourceDirectories, distDirectory, declarations)

Vendored modules

To avoid pulling in additional dependencies at runtime, this package vendors some Deno modules in the deno/vendor directory.

You can recreate this directory by running npm run vendor.

[!WARNING]
At the time of writing, the underlying Deno CLI command doesn't correctly pull the WASM binary required by the ESZIP module. If you run the command to update the list of vendores modules, please ensure you're not deleting eszip_wasm_bg.wasm.

Contributors

Please see CONTRIBUTING.md for instructions on how to set up and work on this repository. Thanks for contributing!

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
12.2.361,221latest

Version History

VersionDownloads (Last 7 Days)Published
12.2.361,221
12.2.29,134
12.2.1376
12.2.0265
12.1.1165
12.1.010
12.0.13,735
12.0.01,635
11.4.0
5
11.3.0
3,199
11.2.2
2,391
11.2.1
6
11.2.0
9
11.1.0
4
11.0.0
2,383
10.1.3
3,344
10.1.2
41
10.1.1
11
10.1.0
153
10.0.04
9.5.0
120
9.4.1
4,029
9.4.0
5
9.3.0
4,803
9.2.1
645
9.2.0
26
9.1.0
674
9.0.0
4
8.20.0
4,257
8.19.1
1,340
8.19.0
410
8.18.0
48
8.17.1
11,109
8.17.0
5
8.16.4
136
8.16.3
6
8.16.2
4,542
8.16.1
553
8.16.0
7
8.15.0
51
8.14.2
119
8.14.1
142
8.14.0
4
8.13.22,481
8.13.152
8.13.011,205
8.12.3147
8.12.215
8.12.19
8.12.018
8.11.124
8.11.0102
8.10.05
8.9.01,963
8.8.15
8.8.04
8.7.0314
8.6.0168
8.5.027
8.4.0100
8.3.04
8.2.120
8.1.2149
8.1.14
8.1.05
8.0.0337
7.1.027
7.0.14
7.0.04
6.1.025
6.0.010
5.5.0844
5.4.04
5.3.319
5.3.24
5.3.117
5.3.04
5.2.04
5.1.04
5.0.01,034
4.4.34
4.4.25
4.4.17
4.4.04
4.3.28
4.3.14
4.3.04
4.2.06
4.1.07
4.0.215
4.0.060
3.1.1175
3.1.09
3.0.14
3.0.04
2.9.0904
2.8.075
2.7.05
2.6.042
2.5.05
2.4.04
2.3.15
2.3.05
2.2.092
2.1.04
2.0.55
2.0.44
2.0.35
2.0.25
2.0.14
2.0.04
1.14.1288
1.14.05
1.13.025
1.12.1817
1.12.04
1.11.04
1.10.04
1.9.04
1.8.0146
1.7.041
1.6.012
1.5.0105
1.4.322
1.4.24
1.4.112
1.4.04
1.3.04
1.2.18
1.2.0354
1.1.06
1.0.099
0.12.093
0.11.04

Package Sidebar

Install

npm i @netlify/edge-bundler

Weekly Downloads

143,837

Version

12.2.3

License

MIT

Unpacked Size

3.81 MB

Total Files

168

Last publish

Collaborators

  • serhalp-netlify
  • youvalv
  • berdav
  • vitaliyr
  • smnh
  • denar90
  • kathmbeck
  • akardet
  • pieh
  • hrishikeshk
  • sarahetter
  • orinokai
  • seanroberts
  • mikewen
  • biilmann
  • eduardoboucas
  • netlify-bot