UNPKG

591 BJavaScriptView Raw
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8process.on('message', (message) => {
9 // Only process messages with the hash in 'run-module-as-observable-fork.ts'.
10 if (message.hash === '5d4b9a5c0a4e0f9977598437b0e85bcc') {
11 const requiredModule = require(message.modulePath);
12 if (message.exportName) {
13 requiredModule[message.exportName](...message.args);
14 } else {
15 requiredModule(...message.args);
16 }
17 }
18});