Skip to content

Commit ea85389

Browse files
author
fengwan
committed
fix(asc 路径&&deps args): 1.3.5 asc路径问题 #7 ,Argument deps is not passed. #6
1 parent 93911b9 commit ea85389

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use strict";
22
import fs from "fs";
33
import path from "path";
4-
import asc from "assemblyscript/bin/asc";
4+
import asc from "assemblyscript/cli/asc";
55
import loaderUtils from "loader-utils";
66
import schema from "./options.bytes.json";
77
import schema4file from "./options.file.json";
@@ -51,7 +51,7 @@ function createCompatibleModuleInBundle(transpiledJs, transpiledWasm) {
5151
${transpiledJs}
5252
compatibleModule = function() {}; compatibleModule.prototype.exports = exports;
5353
}
54-
resolve(compatibleModule().exports);;
54+
resolve(compatibleModule(deps).exports);;
5555
});
5656
return p
5757
}

test/__snapshots__/loader.test.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ exports.step = step;
6666
6767
compatibleModule = function() {}; compatibleModule.prototype.exports = exports;
6868
}
69-
resolve(compatibleModule().exports);;
69+
resolve(compatibleModule(deps).exports);;
7070
});
7171
return p
7272
}

0 commit comments

Comments
 (0)