Skip to content

Commit 3b097dd

Browse files
authored
Update Compiler-options.adoc
1 parent c7d84e0 commit 3b097dd

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

site/docsource/Compiler-options.adoc

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,20 @@ things like this:
5151

5252
[source,bash]
5353
-----------------------------------------------------------
54-
bsc -bs-package-name your_package -bs-package-output goog:lib/goog xx.ml
54+
bsc -bs-package-name your_package -bs-package-output goog:lib/goog -c xx.ml
5555
-----------------------------------------------------------
5656

5757

5858
NOTE: User can supply multiple `-bs-package-output` at the same time.
5959

60+
For example:
61+
62+
[source,bash]
63+
------------
64+
bsc -bs-package-name name -bs-package-output commonjs:lib/js -bs-package-output goog:lib/goog -bs-package-output amdjs:lib/amdjs -c x.ml
65+
------------
66+
67+
It will generate `x.js` in `lib/js` as commonjs module, `lib/goog` as google module and `lib/amdjs` as amdjs module at the same time.
6068

6169
You would then need a bundler for the different module systems:
6270
`webpack` supports `commonjs` and `amdjs` while

0 commit comments

Comments
 (0)