|
8 | 8 |
|
9 | 9 | import { tags } from '@angular-devkit/core';
|
10 | 10 | import * as ts from 'typescript';
|
| 11 | +import { DirectAngularResourceLoaderPath } from '../loaders/direct-resource'; |
11 | 12 | import { replaceResources } from './replace_resources';
|
12 | 13 | import { createTypescriptContext, transformTypescript } from './spec_helpers';
|
13 | 14 |
|
@@ -52,7 +53,7 @@ describe('@ngtools/webpack transformers', () => {
|
52 | 53 | `;
|
53 | 54 | const output = tags.stripIndent`
|
54 | 55 | import { __decorate } from "tslib";
|
55 |
| - import __NG_CLI_RESOURCE__0 from "!raw-loader!./app.component.html"; |
| 56 | + import __NG_CLI_RESOURCE__0 from "!${DirectAngularResourceLoaderPath}!./app.component.html"; |
56 | 57 | import __NG_CLI_RESOURCE__1 from "./app.component.css";
|
57 | 58 | import __NG_CLI_RESOURCE__2 from "./app.component.2.css";
|
58 | 59 | import { Component } from '@angular/core';
|
@@ -102,7 +103,7 @@ describe('@ngtools/webpack transformers', () => {
|
102 | 103 | AppComponent = tslib_1.__decorate([
|
103 | 104 | core_1.Component({
|
104 | 105 | selector: 'app-root',
|
105 |
| - template: require("!raw-loader!./app.component.html").default, |
| 106 | + template: require("!${DirectAngularResourceLoaderPath}!./app.component.html").default, |
106 | 107 | styles: [require("./app.component.css").default, require("./app.component.2.css").default] }) ], AppComponent);
|
107 | 108 | exports.AppComponent = AppComponent;
|
108 | 109 | `;
|
@@ -166,7 +167,7 @@ describe('@ngtools/webpack transformers', () => {
|
166 | 167 | `;
|
167 | 168 | const output = tags.stripIndent`
|
168 | 169 | import { __decorate } from "tslib";
|
169 |
| - import __NG_CLI_RESOURCE__0 from "!raw-loader!./app.component.svg"; |
| 170 | + import __NG_CLI_RESOURCE__0 from "!${DirectAngularResourceLoaderPath}!./app.component.svg"; |
170 | 171 | import { Component } from '@angular/core';
|
171 | 172 | let AppComponent = class AppComponent {
|
172 | 173 | constructor() {
|
@@ -202,7 +203,7 @@ describe('@ngtools/webpack transformers', () => {
|
202 | 203 | `;
|
203 | 204 | const output = tags.stripIndent`
|
204 | 205 | import { __decorate } from "tslib";
|
205 |
| - import __NG_CLI_RESOURCE__0 from "!raw-loader!./app.component.html"; |
| 206 | + import __NG_CLI_RESOURCE__0 from "!${DirectAngularResourceLoaderPath}!./app.component.html"; |
206 | 207 | import __NG_CLI_RESOURCE__1 from "./app.component.css";
|
207 | 208 | import { Component } from '@angular/core';
|
208 | 209 |
|
@@ -240,7 +241,7 @@ describe('@ngtools/webpack transformers', () => {
|
240 | 241 | `;
|
241 | 242 | const output = tags.stripIndent`
|
242 | 243 | import { __decorate } from "tslib";
|
243 |
| - import __NG_CLI_RESOURCE__0 from "!raw-loader!./app.component.html"; |
| 244 | + import __NG_CLI_RESOURCE__0 from "!${DirectAngularResourceLoaderPath}!./app.component.html"; |
244 | 245 | import __NG_CLI_RESOURCE__1 from "data:text/css;charset=utf-8;base64,YSB7IGNvbG9yOiByZWQgfQ==";
|
245 | 246 | import { Component } from '@angular/core';
|
246 | 247 |
|
@@ -284,7 +285,7 @@ describe('@ngtools/webpack transformers', () => {
|
284 | 285 | `;
|
285 | 286 | const output = `
|
286 | 287 | import { __decorate } from "tslib";
|
287 |
| - import __NG_CLI_RESOURCE__0 from "!raw-loader!./app.component.html"; |
| 288 | + import __NG_CLI_RESOURCE__0 from "!${DirectAngularResourceLoaderPath}!./app.component.html"; |
288 | 289 | import __NG_CLI_RESOURCE__1 from "./app.component.css";
|
289 | 290 | import __NG_CLI_RESOURCE__2 from "./app.component.2.css";
|
290 | 291 |
|
@@ -323,7 +324,7 @@ describe('@ngtools/webpack transformers', () => {
|
323 | 324 | `;
|
324 | 325 | const output = tags.stripIndent`
|
325 | 326 | import { __decorate } from "tslib";
|
326 |
| - import __NG_CLI_RESOURCE__0 from "!raw-loader!./app.component.html"; |
| 327 | + import __NG_CLI_RESOURCE__0 from "!${DirectAngularResourceLoaderPath}!./app.component.html"; |
327 | 328 | import __NG_CLI_RESOURCE__1 from "./app.component.css";
|
328 | 329 | import __NG_CLI_RESOURCE__2 from "./app.component.2.css";
|
329 | 330 | import { Component as NgComponent } from '@angular/core';
|
@@ -366,7 +367,7 @@ describe('@ngtools/webpack transformers', () => {
|
366 | 367 | `;
|
367 | 368 | const output = tags.stripIndent`
|
368 | 369 | import { __decorate } from "tslib";
|
369 |
| - import __NG_CLI_RESOURCE__0 from "!raw-loader!./app.component.html"; |
| 370 | + import __NG_CLI_RESOURCE__0 from "!${DirectAngularResourceLoaderPath}!./app.component.html"; |
370 | 371 | import __NG_CLI_RESOURCE__1 from "./app.component.css";
|
371 | 372 | import __NG_CLI_RESOURCE__2 from "./app.component.2.css";
|
372 | 373 |
|
@@ -411,7 +412,7 @@ describe('@ngtools/webpack transformers', () => {
|
411 | 412 |
|
412 | 413 | const output = tags.stripIndent`
|
413 | 414 | import { __decorate } from "tslib";
|
414 |
| - import __NG_CLI_RESOURCE__0 from "!raw-loader!./app.component.html"; |
| 415 | + import __NG_CLI_RESOURCE__0 from "!${DirectAngularResourceLoaderPath}!./app.component.html"; |
415 | 416 | import __NG_CLI_RESOURCE__1 from "./app.component.css";
|
416 | 417 |
|
417 | 418 | import { Component } from '@angular/core';
|
|
0 commit comments