diff --git a/src/app/main.ts b/src/app/main.ts index 510cda54e1..0c8496b342 100644 --- a/src/app/main.ts +++ b/src/app/main.ts @@ -12,7 +12,7 @@ if (!isDev()) { enableProdMode(); } -platformBrowserDynamic().bootstrapModule(AppModule); +platformBrowserDynamic().bootstrapModule(AppModule, { preserveWhitespaces: true }); // Disable drag and drop to prevent malicious links from executing in the context of the app document.addEventListener('dragover', (event) => event.preventDefault()); diff --git a/tsconfig.json b/tsconfig.json index 0c38ace99a..69849a05d2 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -37,6 +37,9 @@ ] } }, + "angularCompilerOptions": { + "preserveWhitespaces": true + }, "exclude": [ "node_modules", "jslib/node_modules",