Skip to content

Commit f754b24

Browse files
committed
Fix asc bundle with webpack 4, see AssemblyScript#36; Function expression progress
1 parent a5e3120 commit f754b24

14 files changed

+361
-239
lines changed

bin/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ The API accepts the same options as the CLI but also lets you override stdout an
1919
const asc = require("assemblyscript/bin/asc.js");
2020
asc.main([
2121
"myModule.ts",
22-
"-b", "myModule.wasm",
23-
"-O",
22+
"--binaryFile", "myModule.wasm",
23+
"--optimize",
2424
"--sourceMap",
2525
"--measure"
2626
], {

bin/asc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env node
22
const asc = module.exports = require("./asc.js");
3-
if (/\basc$/.test(process.argv[1]))
3+
if (/\basc$/.test(process.argv[1])) {
44
process.exitCode = asc.main(process.argv.slice(2));
5+
}

0 commit comments

Comments
 (0)