Explorar o código

ajuste para carga de componentes dinamicos en produccion

Oscar José Nuñez Chávez %!s(int64=5) %!d(string=hai) anos
pai
achega
ac095920ca
Modificáronse 2 ficheiros con 6 adicións e 3 borrados
  1. 1 1
      angular.json
  2. 5 2
      src/polyfills.ts

+ 1 - 1
angular.json

@@ -58,7 +58,7 @@
               "aot": true,
               "extractLicenses": true,
               "vendorChunk": false,
-              "buildOptimizer": true,
+              "buildOptimizer": false,
               "budgets": [
                 {
                   "type": "initial",

+ 5 - 2
src/polyfills.ts

@@ -52,11 +52,14 @@
  *
  */
 
+// Posible fix for dynamic components loader
+
+import "core-js/es/reflect";
+
 /***************************************************************************************************
  * Zone JS is required by default for Angular itself.
  */
-import 'zone.js/dist/zone';  // Included with Angular CLI.
-
+import "zone.js/dist/zone"; // Included with Angular CLI.
 
 /***************************************************************************************************
  * APPLICATION IMPORTS