Skip to content

Commit

Permalink
commonjs2 is the one that nodejs is using
Browse files Browse the repository at this point in the history
  • Loading branch information
stevemao authored Sep 26, 2018
1 parent 406e984 commit abbcbef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ module.exports = {
if (!this.webpackConfig.output || _.isEmpty(this.webpackConfig.output)) {
const outputPath = path.join(this.serverless.config.servicePath, '.webpack');
this.webpackConfig.output = {
libraryTarget: 'commonjs',
libraryTarget: 'commonjs2',
path: outputPath,
filename: '[name].js',
};
Expand Down

0 comments on commit abbcbef

Please sign in to comment.