Skip to content
This repository was archived by the owner on Jun 14, 2024. It is now read-only.

Commit 56b33f9

Browse files
committed
add camelCase flags note
Change-Id: I0a836e376a519c548e6542608b2ae7501eefd6f3
1 parent d8812c6 commit 56b33f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,11 @@ As of release v20160822, commonJS imports may be broken: we recommend that you c
9292

9393
The Closure Compiler in JS supports many of the flags supported by the Java-based Closure Compiler.
9494
For now, the supported flags are [listed in source](https://github.com/google/closure-compiler/blob/master/src/com/google/javascript/jscomp/gwt/client/GwtRunner.java#L93).
95+
Specify these flags as `camelCase` format, and not like `camel_case` or `--camel_case`.
9596

9697
Notably, unless you're using a build system, you have to specify code via flags.
9798
Both `jsCode` and `externs` accept an array containing objects with `src`, `path`, and `sourceMap` properties.
98-
For those of you familiar with [Closure syntax](https://developers.google.com/closure/compiler/docs/js-for-compiler), that's `Array<{src: string, path: string, sourceMap: string}`.
99+
For those of you familiar with [Closure syntax](https://developers.google.com/closure/compiler/docs/js-for-compiler), that's `Array<{src: string, path: string, sourceMap: string}>`.
99100

100101
<!--
101102
Using `path`, you can construct a virtual filesystem for use with ES6 imports or CommonJS imports (although don't forget to specify `processCommonJsModules: true`).

0 commit comments

Comments
 (0)