Previously these symbols were exposed via platform-browser-dynamic, then we merged then into platform-browser thinking that tools would know how to shake off the compiler and other dynamic bits not used with the offline compilation flow. This turned out to be wrong as both webpack and rollup don't have good enough tree-shaking capabilities to do this today. We think that in the future we'll be able to merge these two entry points into one, but we need to give tooling some time before we can do it. In the meantime the reintroduction of the -dynamic package point allows us to separate the compiler dependencies from the rest of the framework. This change undoes the previous breaking change that removed the platform-browser-dynamic package.
17 lines
469 B
TypeScript
17 lines
469 B
TypeScript
import {BaseException} from '@angular/core/src/facade/exceptions';
|
|
import {bootstrap} from '@angular/platform-browser-dynamic';
|
|
import {Component} from '@angular/core';
|
|
|
|
@Component({
|
|
selector: 'error-app',
|
|
template: `
|
|
<button class="errorButton" (click)="createError()">create error</button>`
|
|
})
|
|
export class ErrorComponent {
|
|
createError(): void { throw new BaseException('Sourcemap test'); }
|
|
}
|
|
|
|
export function main() {
|
|
bootstrap(ErrorComponent);
|
|
}
|