Skip to content

refactor: stop exporting NativeScriptModule from platform#701

Merged
sis0k0 merged 1 commit intomasterfrom
remove-nsmodule-export
Mar 14, 2017
Merged

refactor: stop exporting NativeScriptModule from platform#701
sis0k0 merged 1 commit intomasterfrom
remove-nsmodule-export

Conversation

@sis0k0
Copy link
Copy Markdown
Contributor

@sis0k0 sis0k0 commented Mar 13, 2017

Importing NativeScriptModule from "nativescript-angular/platform" leads to
including @angular/compiler in the bundle when doing AoT compilation
with webpack. Import from "nativescript-angular/nativescript.module"
should be used instead.

BREAKING CHANGE: User applications cannot import NativeScriptModule from
"nativescript-angular/platform" anymore.
Migration:
Before:

import { NativeScriptModule } from "nativescript-angular/platform";

After

import { NativeScriptModule } from
"nativescript-angular/nativescript.module";

Importing NativeScriptModule from "nativescript-angular/platform" leads to
including @angular/compiler in the bundle when doing AoT compilation
with webpack. Import from "nativescript-angular/nativescript.module"
should be used instead.

BREAKING CHANGE: User applications cannot import NativeScriptModule from
"nativescript-angular/platform" anymore.
Migration:
Before:
```
import { NativeScriptModule } from "nativescript-angular/platform";
```
After
```
import { NativeScriptModule } from
"nativescript-angular/nativescript.module";
```
@sis0k0 sis0k0 force-pushed the remove-nsmodule-export branch from bd8e0e1 to 64017fa Compare March 14, 2017 08:30
@sis0k0 sis0k0 merged commit 0bd2ba5 into master Mar 14, 2017
@sis0k0 sis0k0 deleted the remove-nsmodule-export branch March 14, 2017 08:48
sis0k0 added a commit that referenced this pull request Mar 21, 2017
Importing NativeScriptModule from "nativescript-angular/platform" leads to
including @angular/compiler in the bundle when doing AoT compilation
with webpack. Import from "nativescript-angular/nativescript.module"
should be used instead.

BREAKING CHANGE: User applications cannot import NativeScriptModule from
"nativescript-angular/platform" anymore.
Migration:
Before:
```
import { NativeScriptModule } from "nativescript-angular/platform";
```
After
```
import { NativeScriptModule } from
"nativescript-angular/nativescript.module";
```
sis0k0 added a commit that referenced this pull request Mar 22, 2017
Importing NativeScriptModule from "nativescript-angular/platform" leads to
including @angular/compiler in the bundle when doing AoT compilation
with webpack. Import from "nativescript-angular/nativescript.module"
should be used instead.

BREAKING CHANGE: User applications cannot import NativeScriptModule from
"nativescript-angular/platform" anymore.
Migration:
Before:
```
import { NativeScriptModule } from "nativescript-angular/platform";
```
After
```
import { NativeScriptModule } from
"nativescript-angular/nativescript.module";
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants