Use bundle version of Rxjs.
authorSebastien Douheret <sebastien.douheret@iot.bzh>
Wed, 7 Jun 2017 12:34:18 +0000 (14:34 +0200)
committerSebastien Douheret <sebastien.douheret@iot.bzh>
Wed, 7 Jun 2017 12:34:18 +0000 (14:34 +0200)
webapp/gulp.conf.js
webapp/package.json
webapp/src/systemjs.config.js

index 0de52f9..0529c02 100644 (file)
@@ -10,7 +10,7 @@ module.exports = {
         node_modules_libs: [
             'core-js/client/shim.min.js',
             'reflect-metadata/Reflect.js',
-            'rxjs/**/*.js',
+            'rxjs-system-bundle/*.min.js',
             'socket.io-client/dist/socket.io*.js',
             'systemjs/dist/system-polyfills.js',
             'systemjs/dist/system.src.js',
index e3de00f..f2e1d30 100644 (file)
@@ -38,6 +38,7 @@
     "ngx-cookie": "^1.0.0",
     "reflect-metadata": "^0.1.8",
     "rxjs": "5.0.3",
+    "rxjs-system-bundle": "5.0.3",
     "socket.io-client": "^1.7.3",
     "socketio": "^1.0.0",
     "systemjs": "0.20.0",
index e6139b0..68edd18 100644 (file)
@@ -4,6 +4,19 @@
             // paths serve as alias
             'npm:': 'lib/'
         },
+        bundles: {
+            "npm:rxjs-system-bundle/Rx.system.min.js": [
+                "rxjs",
+                "rxjs/*",
+                "rxjs/operator/*",
+                "rxjs/observable/*",
+                "rxjs/scheduler/*",
+                "rxjs/symbol/*",
+                "rxjs/add/operator/*",
+                "rxjs/add/observable/*",
+                "rxjs/util/*"
+            ]
+        },
         // map tells the System loader where to look for things
         map: {
             // our app is within the app folder
             'ngx-bootstrap/carousel': 'npm:ngx-bootstrap/bundles/ngx-bootstrap.umd.min.js',
             'ngx-bootstrap/dropdown': 'npm:ngx-bootstrap/bundles/ngx-bootstrap.umd.min.js',
             // other libraries
-            'rxjs': 'npm:rxjs',
             'socket.io-client': 'npm:socket.io-client/dist/socket.io.min.js'
         },
         // packages tells the System loader how to load when no filename and/or no extension
         packages: {
-            app: {
+            'app': {
                 main: './main.js',
                 defaultExtension: 'js'
             },
-            rxjs: {
-                defaultExtension: 'js'
+            'rxjs': {
+                defaultExtension: false
             },
-            "socket.io-client": {
+            'socket.io-client': {
                 defaultExtension: 'js'
             },
             'ngx-bootstrap': {