Skip to content

Commit 0b12aa6

Browse files
committed
chore: mention nft
1 parent 9a6f77b commit 0b12aa6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

MIGRATE.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ This guide covers the following use cases of netlify-lambda and how to accomplis
77
- [Bundle with Webpack](#bundle-with-webpack)
88
- [Install function dependencies](#install-function-dependencies)
99

10-
1110
## Run Netlify Functions locally
1211

1312
The tooling to run functions locally has been completely integrated into the Netlify CLI, which offers even more functionality like local debugging.
@@ -18,7 +17,6 @@ For example in a theoretical Gatsby project you can migrate with the following c
1817

1918
> package.json
2019
21-
2220
```diff
2321
{
2422
"scripts": {
@@ -38,12 +36,12 @@ For example in a theoretical Gatsby project you can migrate with the following c
3836
## Use TypeScript or non-standard JavaScript features
3937

4038
Netlify now supports TypeScript and non-standard JavaScript features.
41-
For TypeScript there is no configuration needed and it will work out of the box. The same is true if you use ESM modules in your functions. The bundling logic will automatically detect these and use `esbuild` to bundle the functions.
39+
For TypeScript there is no configuration needed and it will work out of the box. The same is true if you use ESM modules in your functions. The bundling logic will automatically detect these and use `esbuild` or `nft` to bundle the functions.
4240
In any other case you can set the `node_bundler` to `esbuild` yourself for the functions in your `netlify.toml` file. https://docs.netlify.com/configure-builds/file-based-configuration/#functions
4341

4442
Should `esbuild` not work for your use case then please report this to us or use webpack directly as described in the next section.
4543

46-
## Bundle with Webpack
44+
## Bundle with Webpack
4745

4846
If after trying our [automated bundling](#use-typescript-or-non-standard-javascript-features) you still want to use webpack to bundle your functions, you can use webpack directly and adjust the config to your needs. The following example is for webpack 4, which is the version that netlify-lambda used.
4947

@@ -122,6 +120,8 @@ Consider moving the dependencies of your functions into your main `package.json`
122120

123121
Note that this is needed for local development only. The Netlify build system will detect and install dependencies of your functions.
124122

123+
> package.json
124+
125125
```diff
126126
{
127127
"scripts": {

0 commit comments

Comments
 (0)