Skip to content

Commit 040722c

Browse files
fix(package): Fix manifest -- location of es6 modules is lib/index not lib-esm/index
This allows uirouter/angular-hybrid to be bundled by es6 module aware bundlers like rollup Closes #47
1 parent e283d1f commit 040722c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"zone.js": "~0.6.21"
4949
},
5050
"main": "_bundles/ui-router-angular-hybrid.js",
51-
"module": "lib-esm/index.js",
51+
"module": "lib/index.js",
5252
"typings": "lib/index.d.ts",
5353
"repository": {
5454
"type": "git",

src/angular-hybrid.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import * as angular from 'angular';
22

3-
import { Component, ElementRef, Inject, Injector, Input, NgModule, Provider } from '@angular/core';
3+
import { Component, ElementRef, Inject, Injector, Input, NgModule } from '@angular/core';
44
import { downgradeComponent, UpgradeModule } from '@angular/upgrade/static';
5-
import {} from '@angular/upgrade';
5+
import '@angular/upgrade';
66

77
import {
88
StateObject, forEach, PathNode, Resolvable, StateRegistry, UIRouter, ViewConfig, ViewService
@@ -13,7 +13,7 @@ import {
1313
Ng2ViewDeclaration, ParentUIViewInject, StatesModule, UIROUTER_MODULE_TOKEN, UIROUTER_ROOT_MODULE, UIRouterModule,
1414
} from '@uirouter/angular';
1515

16-
import { $InjectorLike, Ng1ViewConfig, StateProvider } from '@uirouter/angularjs';
16+
import { $InjectorLike, Ng1ViewConfig } from '@uirouter/angularjs';
1717

1818
import { UIRouterRx } from '@uirouter/rx';
1919

0 commit comments

Comments
 (0)