Skip to content

Commit 484ab02

Browse files
committed
fix: ES6 modules do not await the import of Cloud Code files (parse-community#8368)
1 parent 7500d0f commit 484ab02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ParseServer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ class ParseServer {
124124
json = require(process.env.npm_package_json);
125125
}
126126
if (process.env.npm_package_type === 'module' || json?.type === 'module') {
127-
await import(path.resolve(process.cwd(), cloud)).default;
127+
await import(path.resolve(process.cwd(), cloud));
128128
} else {
129129
require(path.resolve(process.cwd(), cloud));
130130
}

0 commit comments

Comments
 (0)