Skip to content

Commit

Permalink
Reproduce error UMD and IIFE output formats are not supported for cod…
Browse files Browse the repository at this point in the history
…e-splitting builds.
  • Loading branch information
VamsiVempati committed Jul 8, 2019
1 parent 80e37af commit df8cceb
Show file tree
Hide file tree
Showing 7 changed files with 7,547 additions and 3 deletions.
16 changes: 16 additions & 0 deletions src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';


const routes: Routes = [
{
path: 'page-one',
loadChildren: () => import('./page-one/page-one.module.ngfactory').then(m => m.PageOneModuleNgFactory)
}
];

@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule]
})
export class AppRoutingModule { }
8 changes: 5 additions & 3 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { CommonModule} from '@angular/common';
import {FormsModule} from '@angular/forms';
import {NgbModule} from '@ng-bootstrap/ng-bootstrap';
import { FormsModule } from '@angular/forms';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';

@NgModule({
Expand All @@ -13,7 +14,8 @@ import { AppComponent } from './app.component';
BrowserModule,
NgbModule,
FormsModule,
CommonModule
CommonModule,
AppRoutingModule
],
providers: [],
bootstrap: [AppComponent]
Expand Down
1 change: 1 addition & 0 deletions src/app/page-one/page-one.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<p>This is some random content for Page One</p>
25 changes: 25 additions & 0 deletions src/app/page-one/page-one.component.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { PageOneComponent } from './page-one.component';

describe('PageOneComponent', () => {
let component: PageOneComponent;
let fixture: ComponentFixture<PageOneComponent>;

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ PageOneComponent ]
})
.compileComponents();
}));

beforeEach(() => {
fixture = TestBed.createComponent(PageOneComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});
28 changes: 28 additions & 0 deletions src/app/page-one/page-one.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'app-page-one',
templateUrl: './page-one.component.html'
})
export class PageOneComponent implements OnInit {

constructor() { }

ngOnInit() {
}

}

import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';

const routes: Routes = [{
path: '',
component: PageOneComponent
}];

@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class PageOneRoutingModule { }
12 changes: 12 additions & 0 deletions src/app/page-one/page-one.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { NgModule } from '@angular/core';
import { PageOneComponent } from './page-one.component';

@NgModule({
declarations: [
PageOneComponent
],
imports: [
],
providers: []
})
export class PageOneModule { }
Loading

0 comments on commit df8cceb

Please sign in to comment.