Przeglądaj źródła

include polyfills for dependencies

kunickyd 3 lat temu
rodzic
commit
bf391a4bc3
3 zmienionych plików z 13 dodań i 3 usunięć
  1. 3 1
      angular.json
  2. 8 2
      package.json
  3. 2 0
      tsconfig.json

+ 3 - 1
angular.json

@@ -35,7 +35,9 @@
               "geostyler-legend",
               "ol-popup",
               "geostyler-openlayers-parser",
-              "geostyler-sld-parser"
+              "geostyler-sld-parser",
+              "path",
+              "crypto"
             ],
             "assets": [
               {

+ 8 - 2
package.json

@@ -27,7 +27,10 @@
   },
   "homepage": "https://github.com/jmacura/template-hslayers/README.md",
   "dependencies": {
-    "hslayers-ng": "^7.0.3"
+    "crypto-browserify": "^3.12.0",
+    "hslayers-ng": "^7.0.3",
+    "iroha-helpers": "^1.3.0",
+    "path-browserify": "^1.0.1"
   },
   "devDependencies": {
     "@angular-builders/custom-webpack": "^12.1.3",
@@ -35,5 +38,8 @@
     "@angular/cli": "^12.2.13",
     "@types/karma-jasmine": "^4.0.2",
     "karma-jasmine": "^4.0.1"
+  },
+  "browser": {
+    "fs": false
   }
-}
+}

+ 2 - 0
tsconfig.json

@@ -22,6 +22,8 @@
       "hslayers-ng/*": ["node_modules/hslayers/*"],
       "@ngx-translate/*": ["node_modules/@ngx-translate/*"],
       "cesium/*": ["node_modules/cesium/*"],
+      "path" : ["node_modules/path-browserify*"],
+      "crypto": ["node_modules/crypto-browserify"]
     }
   },
   "angularCompilerOptions": {