UNPKG

@angular/platform-server

Version:

Angular - library for using Angular in Node.js

1 lines 1.56 kB
{"version":3,"file":"init.mjs","sources":[".../third_party/domino/bundled-domino.mjs';\n\n/**\n * Apply the necessary shims to make DOM globals (such as `Element`, `HTMLElement`, etc.) available\n * on the environment.\n */\nexport function applyShims(): void {\n // Make all Domino types available in the global env.\n // NB: Any changes here should also be done in `packages/platform-server/src/domino_adapter.ts`.\n Object.assign(globalThis, domino.impl);\n (globalThis as any)['KeyboardEvent'] = domino.impl.Event;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\n/**\n * @module\n * @description\n * Entry point for all initialization APIs of the platform-server package.\n */\n\nimport {applyShims} from './shims';\n\napplyShims();\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport './src/init';\n\n// This ensures this is still a module and can be imported.\nexport const ɵɵmoduleMarker = true;\n"],"names":["applyShims","Object","assign","globalThis","domino","impl","Event","ɵɵmoduleMarker"],"mappings":";;;;;;;;SAcgBA,UAAUA,GAAA;EAGxBC,MAAM,CAACC,MAAM,CAACC,UAAU,EAAEC,MAAM,CAACC,IAAI,CAAC;EACrCF,UAAkB,CAAC,eAAe,CAAC,GAAGC,MAAM,CAACC,IAAI,CAACC,KAAK;AAC1D;;ACHAN,UAAU,EAAE;;ACLL,MAAMO,cAAc,GAAG;;;;"}