X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fenvironments%2Fenvironment.ts;h=1ea4835548ed0c41eaeb759d9c871f19298ef0bf;hb=24b1c65abd6fa84b2e21bc2cb87c0b3006120787;hp=43d78854103877b00773b6f1b49c1476c430330f;hpb=63c4db6d71b98523753c51747e308682d9a2e8a0;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/environments/environment.ts b/client/src/environments/environment.ts index 43d788541..1ea483554 100644 --- a/client/src/environments/environment.ts +++ b/client/src/environments/environment.ts @@ -1,9 +1,16 @@ -// The file contents for the current environment will overwrite these during build. // The build system defaults to the dev environment which uses `environment.ts`, but if you do // `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: false, apiUrl: 'http://localhost:9000' }