Skip to content

Commit

Permalink
fix: remove skipping module installation if no externals used
Browse files Browse the repository at this point in the history
  • Loading branch information
jazmon committed Apr 27, 2022
1 parent 2e3803a commit 7152a7e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/pack-externals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,12 +279,6 @@ export async function packExternalModules(this: EsbuildServerlessPlugin) {
getProdModules.call(this, externalModules, packageJsonPath, rootPackageJsonPath)
);

if (isEmpty(compositeModules)) {
// The compiled code does not reference any external modules at all
this.log.warning('No external modules needed');
return;
}

// (1.a) Install all needed modules
const compositeModulePath = this.buildDirPath;
const compositePackageJson = path.join(compositeModulePath, 'package.json');
Expand Down

0 comments on commit 7152a7e

Please sign in to comment.