X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fenvironments%2Fenvironment.ts;h=1ea4835548ed0c41eaeb759d9c871f19298ef0bf;hb=24b1c65abd6fa84b2e21bc2cb87c0b3006120787;hp=364da6745c9ac1d1a1e55ac135c0f11923ad3d97;hpb=93df58cc4865af9046d2b31e03fa37d3ae54e45b;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/environments/environment.ts b/client/src/environments/environment.ts index 364da6745..1ea483554 100644 --- a/client/src/environments/environment.ts +++ b/client/src/environments/environment.ts @@ -2,8 +2,15 @@ // `ng build --env=prod` then `environment.prod.ts` will be used instead. // The list of which env maps to which file can be found in `.angular-cli.json`. +// Reflect.metadata polyfill is only needed in the JIT/dev mode. +// +// In order to load these polyfills early enough (before app code), polyfill.ts imports this file to +// to change the order in the final bundle. +import 'core-js/es6/reflect' +import 'core-js/es7/reflect' + export const environment = { production: false, - hmr: true, + hmr: false, apiUrl: 'http://localhost:9000' }