Last change
on this file since 8d391a1 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 | */
|
---|
9 | Object.defineProperty(exports, "__esModule", { value: true });
|
---|
10 | exports.InlineAngularResourceSymbol = exports.InlineAngularResourceLoaderPath = void 0;
|
---|
11 | exports.InlineAngularResourceLoaderPath = __filename;
|
---|
12 | exports.InlineAngularResourceSymbol = Symbol('@ngtools/webpack[angular-resource]');
|
---|
13 | function 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 | }
|
---|
24 | exports.default = default_1;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.