Skip to content

Commit 7ab1220

Browse files
authored
Update README.md
1 parent d35fa62 commit 7ab1220

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Diff for: README.md

+11
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,17 @@ module.exports = {
330330

331331
Then specify `netlify-lambda serve --config ./webpack.functions.js`. If using VSCode, it is likely that the `sourceMapPathOverrides` have to be adapted for breakpoints to work. Read here for more info on [how to modify the webpack config](https://github.com/netlify/netlify-lambda/issues/64#issuecomment-429625191).
332332

333+
If you're using firebase SDK and other native modules, check [this issue](https://github.com/netlify/netlify-lambda/issues/112#issuecomment-489072330) and use this plugin:
334+
335+
```
336+
//./config/webpack.functions.js
337+
const nodeExternals = require('webpack-node-externals');
338+
339+
module.exports = {
340+
externals: [nodeExternals()],
341+
};
342+
```
343+
333344
The additional webpack config will be merged into the default config via [webpack-merge's](https://www.npmjs.com/package/webpack-merge) `merge.smart` method.
334345

335346
### Babel configuration

0 commit comments

Comments
 (0)