source: trip-planner-front/node_modules/@ngtools/webpack/src/loaders/inline-resource.js@ 6a80231

Last change on this file since 6a80231 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 860 bytes
Line 
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 = exports.InlineAngularResourceLoaderPath = void 0;
11exports.InlineAngularResourceLoaderPath = __filename;
12exports.InlineAngularResourceSymbol = Symbol('@ngtools/webpack[angular-resource]');
13function default_1() {
14 const callback = this.async();
15 const { data } = this.getOptions();
16 if (data) {
17 callback(undefined, Buffer.from(data, 'base64').toString());
18 }
19 else {
20 const content = this._compilation[exports.InlineAngularResourceSymbol];
21 callback(undefined, content);
22 }
23}
24exports.default = default_1;
Note: See TracBrowser for help on using the repository browser.