Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Commit

Permalink
chore: undo node externals change for node 16
Browse files Browse the repository at this point in the history
  • Loading branch information
SanketD92 committed Nov 13, 2023
1 parent c168734 commit 5aa9a3a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main/solution/backend/config/build/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

const CopyPlugin = require('copy-webpack-plugin'); // see https://github.com/boazdejong/webpack-plugin-copy
const slsw = require('serverless-webpack');
const nodeExternals = require('webpack-node-externals');

const plugins = [new CopyPlugin([])];

Expand All @@ -29,6 +30,10 @@ module.exports = {
hints: false,
},
devtool: 'nosources-source-map',
externals: [
/aws-sdk/, // Available on AWS Lambda
slsw.lib.webpack.isLocal && nodeExternals(),
].filter(x => !!x),
plugins,
node: {
__dirname: false,
Expand Down

0 comments on commit 5aa9a3a

Please sign in to comment.