UNPKG

764 BJavaScriptView Raw
1"use strict";
2/**
3 * @license
4 * Copyright Google LLC All Rights Reserved.
5 *
6 * Use of this source code is governed by an MIT-style license that can be
7 * found in the LICENSE file at https://angular.io/license
8 */
9Object.defineProperty(exports, "__esModule", { value: true });
10exports.InlineAngularResourceSymbol = void 0;
11exports.InlineAngularResourceSymbol = Symbol('@ngtools/webpack[angular-resource]');
12function default_1() {
13 const callback = this.async();
14 const { data } = this.getOptions();
15 if (data) {
16 callback(undefined, Buffer.from(data, 'base64').toString());
17 }
18 else {
19 const content = this._compilation[exports.InlineAngularResourceSymbol];
20 callback(undefined, content);
21 }
22}
23exports.default = default_1;