File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -51,12 +51,20 @@ things like this:
51
51
52
52
[source,bash]
53
53
-----------------------------------------------------------
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
55
55
-----------------------------------------------------------
56
56
57
57
58
58
NOTE: User can supply multiple `-bs-package-output` at the same time.
59
59
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.
60
68
61
69
You would then need a bundler for the different module systems:
62
70
`webpack` supports `commonjs` and `amdjs` while
You can’t perform that action at this time.
0 commit comments