From 040722cb1e6d49886db5a7b39f80252836be7b44 Mon Sep 17 00:00:00 2001 From: Chris Thielen Date: Tue, 15 Aug 2017 15:37:34 -0700 Subject: [PATCH] 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 https://github.com/ui-router/angular-hybrid/issues/47 --- package.json | 2 +- src/angular-hybrid.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index b58eea54..5bb264ed 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "zone.js": "~0.6.21" }, "main": "_bundles/ui-router-angular-hybrid.js", - "module": "lib-esm/index.js", + "module": "lib/index.js", "typings": "lib/index.d.ts", "repository": { "type": "git", diff --git a/src/angular-hybrid.ts b/src/angular-hybrid.ts index 30b38b76..68b2d826 100644 --- a/src/angular-hybrid.ts +++ b/src/angular-hybrid.ts @@ -1,8 +1,8 @@ import * as angular from 'angular'; -import { Component, ElementRef, Inject, Injector, Input, NgModule, Provider } from '@angular/core'; +import { Component, ElementRef, Inject, Injector, Input, NgModule } from '@angular/core'; import { downgradeComponent, UpgradeModule } from '@angular/upgrade/static'; -import {} from '@angular/upgrade'; +import '@angular/upgrade'; import { StateObject, forEach, PathNode, Resolvable, StateRegistry, UIRouter, ViewConfig, ViewService @@ -13,7 +13,7 @@ import { Ng2ViewDeclaration, ParentUIViewInject, StatesModule, UIROUTER_MODULE_TOKEN, UIROUTER_ROOT_MODULE, UIRouterModule, } from '@uirouter/angular'; -import { $InjectorLike, Ng1ViewConfig, StateProvider } from '@uirouter/angularjs'; +import { $InjectorLike, Ng1ViewConfig } from '@uirouter/angularjs'; import { UIRouterRx } from '@uirouter/rx';