Skip to content

Commit 5d2216d

Browse files
committed
added amd-loader
1 parent f6f64e6 commit 5d2216d

18 files changed

+85513
-92627
lines changed

apps/codelab/src/app/components/angular-test-runner/angular-test-runner.component.ts

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,10 @@ export class SimpleAngularTestRunnerComponent
124124
{
125125
id: 'testing',
126126
url: '/assets/runner',
127+
},
128+
({ evalJs }) => {
129+
// evalJs(this.scriptLoaderService.getScript('shim'));
130+
// evalJs(this.scriptLoaderService.getScript('zone'));
127131
}
128132
);
129133

@@ -135,18 +139,20 @@ export class SimpleAngularTestRunnerComponent
135139
sandbox.evalJs(this.scriptLoaderService.getScript('chai'));
136140
sandbox.evalJs(this.scriptLoaderService.getScript('mocha'));
137141
sandbox.evalJs(this.scriptLoaderService.getScript('test-bootstrap'));
138-
sandbox.evalJs(this.scriptLoaderService.getScript('shim'));
139-
sandbox.evalJs(this.scriptLoaderService.getScript('zone'));
142+
// sandbox.evalJs(this.scriptLoaderService.getScript('shim'));
143+
// sandbox.evalJs(this.scriptLoaderService.getScript('zone'));
140144
// sandbox.evalJs(this.scriptLoaderService.getScript('system-config'));
141-
sandbox.evalJs(this.scriptLoaderService.getScript('ng-bundle'));
145+
// sandbox.evalJs(this.scriptLoaderService.getScript('ng-bundle'));
142146

143147
this.subscription = this.changedFilesSubject.subscribe((files) => {
148+
addMetaInformation(sandbox, this.code);
149+
150+
144151
const hasErrors = Object.entries(files)
145-
.filter(([path]) => path.match(/\.js$/))
152+
.filter(([path]) => path.match(/\.js$/) && !path.startsWith('code'))
146153
.map(([path, code]) => {
147154
try {
148155
sandbox.evalJs(`console.log('I remove modul')`);
149-
addMetaInformation(sandbox, this.code);
150156
sandbox.evalJs(code);
151157
} catch (e) {
152158
console.groupCollapsed(e.message);

0 commit comments

Comments
 (0)