Skip to content

Commit 5e5b038

Browse files
committed
added amd-loader
1 parent cee6c7b commit 5e5b038

18 files changed

+85324
-92622
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
@@ -125,6 +125,10 @@ export class SimpleAngularTestRunnerComponent
125125
{
126126
id: 'testing',
127127
url: '/assets/runner',
128+
},
129+
({ evalJs }) => {
130+
// evalJs(this.scriptLoaderService.getScript('shim'));
131+
// evalJs(this.scriptLoaderService.getScript('zone'));
128132
}
129133
);
130134

@@ -136,18 +140,20 @@ export class SimpleAngularTestRunnerComponent
136140
sandbox.evalJs(this.scriptLoaderService.getScript('chai'));
137141
sandbox.evalJs(this.scriptLoaderService.getScript('mocha'));
138142
sandbox.evalJs(this.scriptLoaderService.getScript('test-bootstrap'));
139-
sandbox.evalJs(this.scriptLoaderService.getScript('shim'));
140-
sandbox.evalJs(this.scriptLoaderService.getScript('zone'));
143+
// sandbox.evalJs(this.scriptLoaderService.getScript('shim'));
144+
// sandbox.evalJs(this.scriptLoaderService.getScript('zone'));
141145
// sandbox.evalJs(this.scriptLoaderService.getScript('system-config'));
142-
sandbox.evalJs(this.scriptLoaderService.getScript('ng-bundle'));
146+
// sandbox.evalJs(this.scriptLoaderService.getScript('ng-bundle'));
143147

144148
this.subscription = this.changedFilesSubject.subscribe((files) => {
149+
addMetaInformation(sandbox, this.code);
150+
151+
145152
const hasErrors = Object.entries(files)
146-
.filter(([path]) => path.match(/\.js$/))
153+
.filter(([path]) => path.match(/\.js$/) && !path.startsWith('code'))
147154
.map(([path, code]) => {
148155
try {
149156
sandbox.evalJs(`console.log('I remove modul')`);
150-
addMetaInformation(sandbox, this.code);
151157
sandbox.evalJs(code);
152158
} catch (e) {
153159
console.groupCollapsed(e.message);

0 commit comments

Comments
 (0)