File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
content/case-study-foreign-integration-js-browser Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ Currently, `google-closure-compiler` is supported for minification of the bundle
67
67
``` sh
68
68
mateusz@m12844:~ /personal/halogen-blog$ ./run_example 1
69
69
(...)
70
- + npx google-closure-compiler --compilation_level ADVANCED_OPTIMIZATIONS --warning_level QUIET --isolation_mode IIFE --assume_function_wrapper --emit_use_strict --js /home/mateusz/personal/halogen-blog/dist-newstyle/build/javascript-ghcjs/ghc-9.12.1/example1-0.1.0.0/x/example1/build/example1/example1.jsexe/all.js --js /home/mateusz/personal/halogen-blog/dist-newstyle/build/javascript-ghcjs/ghc-9.12.1/example1-0.1.0.0/x/example1/build/example1/example1.jsexe/all.externs.js --js_output_file ../dev/index.js
70
+ + npx google-closure-compiler --language_in UNSTABLE -- compilation_level ADVANCED_OPTIMIZATIONS --warning_level QUIET --isolation_mode IIFE --assume_function_wrapper --emit_use_strict --js /home/mateusz/personal/halogen-blog/dist-newstyle/build/javascript-ghcjs/ghc-9.12.1/example1-0.1.0.0/x/example1/build/example1/example1.jsexe/all.js --js /home/mateusz/personal/halogen-blog/dist-newstyle/build/javascript-ghcjs/ghc-9.12.1/example1-0.1.0.0/x/example1/build/example1/example1.jsexe/all.externs.js --js_output_file ../dev/index.js
71
71
Input size: 1.8M
72
72
Output size: 396K
73
73
```
@@ -295,7 +295,7 @@ Let's run the example.
295
295
``` sh
296
296
mateusz@m12844:~ /personal/halogen-blog$ ./run_example 2
297
297
(...)
298
- + npx google-closure-compiler --compilation_level ADVANCED_OPTIMIZATIONS --warning_level QUIET --isolation_mode IIFE --assume_function_wrapper --emit_use_strict --js /home/mateusz/personal/halogen-blog/dist-newstyle/build/javascript-ghcjs/ghc-9.12.1/example2-0.1.0.0/x/example2/build/example2/example2.jsexe/all.js --js /home/mateusz/personal/halogen-blog/dist-newstyle/build/javascript-ghcjs/ghc-9.12.1/example2-0.1.0.0/x/example2/build/example2/example2.jsexe/all.externs.js --js_output_file ./example2/assets/index.js
298
+ + npx google-closure-compiler --language_in UNSTABLE -- compilation_level ADVANCED_OPTIMIZATIONS --warning_level QUIET --isolation_mode IIFE --assume_function_wrapper --emit_use_strict --js /home/mateusz/personal/halogen-blog/dist-newstyle/build/javascript-ghcjs/ghc-9.12.1/example2-0.1.0.0/x/example2/build/example2/example2.jsexe/all.js --js /home/mateusz/personal/halogen-blog/dist-newstyle/build/javascript-ghcjs/ghc-9.12.1/example2-0.1.0.0/x/example2/build/example2/example2.jsexe/all.externs.js --js_output_file ./example2/assets/index.js
299
299
/home/mateusz/personal/halogen-blog/dist-newstyle/build/javascript-ghcjs/ghc-9.12.1/example2-0.1.0.0/x/example2/build/example2/example2.jsexe/all.js:17760:0: ERROR - [JSC_INVALID_MODULE_PATH] Invalid module path " @material/ripple" for resolution mode " BROWSER"
300
300
17760| import {MDCRipple} from ' @material/ripple' ;
301
301
```
@@ -324,7 +324,7 @@ Now we add it to our `google-closure-compiler` invokation:
324
324
```sh
325
325
mateusz@ m12844:~/ personal/ halogen- blog$ ./ run_example 2 - workaround
326
326
(...)
327
- + npx google- closure- compiler -- compilation_level ADVANCED_OPTIMIZATIONS --warning_level QUIET --isolation_mode IIFE --assume_function_wrapper --emit_use_strict --js /home/mateusz/personal/halogen-blog/dist-newstyle/build/javascript-ghcjs/ghc-9.12.1/example2-workaround-0.1.0.0/x/example2-workaround/build/example2-workaround/example2-workaround.jsexe/all.js --js /home/mateusz/personal/halogen-blog/dist-newstyle/build/javascript-ghcjs/ghc-9.12.1/example2-workaround-0.1.0.0/x/example2-workaround/build/example2-workaround/example2-workaround.jsexe/all.externs.js --js ./example2-workaround/src/Button.externs.js --js_output_file ./example2-workaround/assets/index.js
327
+ + npx google- closure- compiler -- language_in UNSTABLE -- compilation_level ADVANCED_OPTIMIZATIONS --warning_level QUIET --isolation_mode IIFE --assume_function_wrapper --emit_use_strict --js /home/mateusz/personal/halogen-blog/dist-newstyle/build/javascript-ghcjs/ghc-9.12.1/example2-workaround-0.1.0.0/x/example2-workaround/build/example2-workaround/example2-workaround.jsexe/all.js --js /home/mateusz/personal/halogen-blog/dist-newstyle/build/javascript-ghcjs/ghc-9.12.1/example2-workaround-0.1.0.0/x/example2-workaround/build/example2-workaround/example2-workaround.jsexe/all.externs.js --js ./example2-workaround/src/Button.externs.js --js_output_file ./example2-workaround/assets/index.js
328
328
Input size: 3.4 M
329
329
Output size: 756 K
330
330
```
You can’t perform that action at this time.
0 commit comments