Skip to content

Commit 8c970fc

Browse files
committed
try to fix closure compiler
1 parent 45dd431 commit 8c970fc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/closure-compiler/build-devapp-bundle.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,19 @@ cd $(dirname $0)/../..
1212
$(npm bin)/gulp build:devapp
1313
$(npm bin)/gulp :package:release
1414

15+
echo 'Rebuild demo-app with ES2015 modules'
1516
# Rebuild demo-app with ES2015 modules. Closure compiler is then able to parse imports.
1617
$(npm bin)/tsc -p src/demo-app/tsconfig-build.json --target ES2015 --module ES2015
1718

19+
echo 'Re-compile RxJS sources into ES2015'
1820
# Re-compile RxJS sources into ES2015. Otherwise closure compiler can't parse it properly.
1921
$(npm bin)/ngc -p scripts/closure-compiler/tsconfig-rxjs.json
2022

23+
echo 'Create a list of all RxJS source files.'
2124
# Create a list of all RxJS source files.
2225
rxjsSourceFiles=$(find dist/packages/rxjs -name '*.js');
2326

27+
echo 'exports to the different RxJS ES2015 files'
2428
# Due a Closure Compiler issue https://github.com/google/closure-compiler/issues/2247
2529
# we need to add exports to the different RxJS ES2015 files.
2630
for i in $rxjsSourceFiles; do

0 commit comments

Comments
 (0)