Skip to content

Commit

Permalink
fix: ES6 modules do not await the import of Cloud Code files (parse-c…
Browse files Browse the repository at this point in the history
  • Loading branch information
dblythy committed Jan 20, 2023
1 parent eb0311b commit a7bd180
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ParseServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class ParseServer {
json = require(process.env.npm_package_json);
}
if (process.env.npm_package_type === 'module' || json?.type === 'module') {
await import(path.resolve(process.cwd(), cloud)).default;
await import(path.resolve(process.cwd(), cloud));
} else {
require(path.resolve(process.cwd(), cloud));
}
Expand Down

0 comments on commit a7bd180

Please sign in to comment.