Skip to content

Commit ba9788f

Browse files
authored
Update README.md
1 parent 43a4bdf commit ba9788f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,19 @@ To run your compiled functions locally you can:
134134
$ serverless invoke local --function <function-name>
135135
```
136136

137+
### Enabling source-maps
138+
139+
You can easily enable support for source-maps (making stacktraces easier to read) by installing and using the following plugin:
140+
141+
```sh
142+
yarn add --dev source-map-support
143+
```
144+
145+
```ts
146+
// inside of your function
147+
import 'source-map-support/register'
148+
```
149+
137150
Options are:
138151

139152
- `--function` or `-f` (required) is the name of the function to run

0 commit comments

Comments
 (0)