UNPKG

@angular/platform-server

Version:

Angular - library for using Angular in Node.js

1 lines 1.46 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":[],"mappings":";;;;;;;;SAcgB,UAAU,GAAA;EAGxB,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,IAAI,CAAC;EACrC,UAAkB,CAAC,eAAe,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK;AAC1D;;ACHA,UAAU,EAAE;;ACLL,MAAM,cAAc,GAAG;;;;"}