Skip to content

Commit

Permalink
Fix asc bundle with webpack 4, see #36; Function expression progress
Browse files Browse the repository at this point in the history
  • Loading branch information
dcodeIO committed Mar 3, 2018
1 parent a5e3120 commit f754b24
Show file tree
Hide file tree
Showing 14 changed files with 361 additions and 239 deletions.
4 changes: 2 additions & 2 deletions bin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ The API accepts the same options as the CLI but also lets you override stdout an
const asc = require("assemblyscript/bin/asc.js");
asc.main([
"myModule.ts",
"-b", "myModule.wasm",
"-O",
"--binaryFile", "myModule.wasm",
"--optimize",
"--sourceMap",
"--measure"
], {
Expand Down
3 changes: 2 additions & 1 deletion bin/asc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env node
const asc = module.exports = require("./asc.js");
if (/\basc$/.test(process.argv[1]))
if (/\basc$/.test(process.argv[1])) {
process.exitCode = asc.main(process.argv.slice(2));
}
Loading

0 comments on commit f754b24

Please sign in to comment.