Skip to content

Commit

Permalink
Fix preLoadModules
Browse files Browse the repository at this point in the history
  • Loading branch information
dherault committed Aug 30, 2024
1 parent 1257820 commit 66afa70
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ServerlessOffline.js
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,8 @@ export default class ServerlessOffline {
const modules = this.#options.preLoadModules.split(",")

modules.forEach((module) => {
if (!module) return

try {
import(module)
} catch (error) {
Expand Down

0 comments on commit 66afa70

Please sign in to comment.