We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7928ef7 commit 862bfdfCopy full SHA for 862bfdf
packages/async-rewriter3/lib/index.js
@@ -12,13 +12,13 @@ let importPromise;
12
if (v8.startupSnapshot?.isBuildingSnapshot?.()) {
13
v8.startupSnapshot.addDeserializeCallback(() => {
14
importPromise = import('../pkg/index.js');
15
+ importPromise.then(exports => syncImport = exports);
16
});
17
} else {
18
19
20
}
21
let syncImport;
-importPromise.then(exports => syncImport = exports);
-
22
23
module.exports = class AsyncWriter {
24
async process(code) {
0 commit comments