@@ -50,7 +50,7 @@ describe('@ngtools/webpack transformers', () => {
50
50
import __NG_CLI_RESOURCE__2 from "./app.component.2.css?ngResource";
51
51
import { Component } from '@angular/core';
52
52
53
- export let AppComponent = class AppComponent {
53
+ let AppComponent = class AppComponent {
54
54
constructor() {
55
55
this.title = 'app';
56
56
}
@@ -62,6 +62,7 @@ describe('@ngtools/webpack transformers', () => {
62
62
styles: [__NG_CLI_RESOURCE__1, __NG_CLI_RESOURCE__2]
63
63
})
64
64
], AppComponent);
65
+ export { AppComponent };
65
66
` ;
66
67
67
68
const result = transform ( input ) ;
@@ -89,9 +90,10 @@ describe('@ngtools/webpack transformers', () => {
89
90
90
91
const tslib_1 = require("tslib");
91
92
const core_1 = require("@angular/core");
92
- let AppComponent = exports.AppComponent = class AppComponent {
93
+ let AppComponent = class AppComponent {
93
94
constructor() { this.title = 'app'; }
94
95
};
96
+ exports.AppComponent = AppComponent;
95
97
exports.AppComponent = AppComponent = tslib_1.__decorate([
96
98
(0, core_1.Component)({
97
99
selector: 'app-root',
@@ -119,7 +121,7 @@ describe('@ngtools/webpack transformers', () => {
119
121
import { __decorate } from "tslib";
120
122
import __NG_CLI_RESOURCE__0 from "./app.component.svg?ngResource";
121
123
import { Component } from '@angular/core';
122
- export let AppComponent = class AppComponent {
124
+ let AppComponent = class AppComponent {
123
125
constructor() {
124
126
this.title = 'app';
125
127
}
@@ -130,6 +132,7 @@ describe('@ngtools/webpack transformers', () => {
130
132
template: __NG_CLI_RESOURCE__0
131
133
})
132
134
], AppComponent);
135
+ export { AppComponent };
133
136
` ;
134
137
135
138
const result = transform ( input ) ;
@@ -156,7 +159,7 @@ describe('@ngtools/webpack transformers', () => {
156
159
import __NG_CLI_RESOURCE__1 from "./app.component.css?ngResource";
157
160
import { Component } from '@angular/core';
158
161
159
- export let AppComponent = class AppComponent {
162
+ let AppComponent = class AppComponent {
160
163
constructor() {
161
164
this.title = 'app';
162
165
}
@@ -168,6 +171,7 @@ describe('@ngtools/webpack transformers', () => {
168
171
styles: ["a { color: red }", __NG_CLI_RESOURCE__1]
169
172
})
170
173
], AppComponent);
174
+ export { AppComponent };
171
175
` ;
172
176
173
177
const result = transform ( input ) ;
@@ -194,7 +198,7 @@ describe('@ngtools/webpack transformers', () => {
194
198
import __NG_CLI_RESOURCE__2 from "./app.component.2.css?ngResource";
195
199
196
200
import { Component } from '@angular/core';
197
- export let AppComponent = class AppComponent {
201
+ let AppComponent = class AppComponent {
198
202
constructor() {
199
203
this.title = 'app';
200
204
}
@@ -206,6 +210,7 @@ describe('@ngtools/webpack transformers', () => {
206
210
styles: [__NG_CLI_RESOURCE__1, __NG_CLI_RESOURCE__2]
207
211
})
208
212
], AppComponent);
213
+ export { AppComponent };
209
214
` ;
210
215
211
216
const result = transform ( input ) ;
@@ -232,7 +237,7 @@ describe('@ngtools/webpack transformers', () => {
232
237
import __NG_CLI_RESOURCE__2 from "./app.component.2.css?ngResource";
233
238
import { Component as NgComponent } from '@angular/core';
234
239
235
- export let AppComponent = class AppComponent {
240
+ let AppComponent = class AppComponent {
236
241
constructor() {
237
242
this.title = 'app';
238
243
}
@@ -244,6 +249,7 @@ describe('@ngtools/webpack transformers', () => {
244
249
styles: [__NG_CLI_RESOURCE__1, __NG_CLI_RESOURCE__2]
245
250
})
246
251
], AppComponent);
252
+ export { AppComponent };
247
253
` ;
248
254
249
255
const { program } = createTypescriptContext ( input ) ;
@@ -274,7 +280,7 @@ describe('@ngtools/webpack transformers', () => {
274
280
import __NG_CLI_RESOURCE__2 from "./app.component.2.css?ngResource";
275
281
276
282
import * as ng from '@angular/core';
277
- export let AppComponent = class AppComponent {
283
+ let AppComponent = class AppComponent {
278
284
constructor() {
279
285
this.title = 'app';
280
286
}
@@ -286,6 +292,7 @@ describe('@ngtools/webpack transformers', () => {
286
292
styles: [__NG_CLI_RESOURCE__1, __NG_CLI_RESOURCE__2]
287
293
})
288
294
], AppComponent);
295
+ export { AppComponent };
289
296
` ;
290
297
291
298
const result = transform ( input ) ;
@@ -318,7 +325,7 @@ describe('@ngtools/webpack transformers', () => {
318
325
319
326
import { Component } from '@angular/core';
320
327
321
- export let AppComponent = class AppComponent {
328
+ let AppComponent = class AppComponent {
322
329
constructor() {
323
330
this.obj = [
324
331
{
@@ -336,6 +343,7 @@ describe('@ngtools/webpack transformers', () => {
336
343
styles: [__NG_CLI_RESOURCE__1]
337
344
})
338
345
], AppComponent);
346
+ export { AppComponent };
339
347
` ;
340
348
341
349
const result = transform ( input ) ;
@@ -365,7 +373,7 @@ describe('@ngtools/webpack transformers', () => {
365
373
import { __decorate } from "tslib";
366
374
import { Component } from 'foo';
367
375
368
- export let AppComponent = class AppComponent {
376
+ let AppComponent = class AppComponent {
369
377
constructor() {
370
378
this.obj = [
371
379
{
@@ -383,6 +391,7 @@ describe('@ngtools/webpack transformers', () => {
383
391
styleUrls: ['./app.component.css']
384
392
})
385
393
], AppComponent);
394
+ export { AppComponent };
386
395
` ;
387
396
388
397
const result = transform ( input ) ;
@@ -405,7 +414,7 @@ describe('@ngtools/webpack transformers', () => {
405
414
const output = `
406
415
import { __decorate } from "tslib";
407
416
import { Component } from '@angular/core';
408
- export let AppComponent = class AppComponent {
417
+ let AppComponent = class AppComponent {
409
418
constructor() {
410
419
this.title = 'app';
411
420
}
@@ -417,6 +426,7 @@ describe('@ngtools/webpack transformers', () => {
417
426
styleUrls: ['./app.component.css', './app.component.2.css']
418
427
})
419
428
], AppComponent);
429
+ export { AppComponent };
420
430
` ;
421
431
422
432
const result = transform ( input , false ) ;
0 commit comments