From 4e6be15069ad7b3416ff46754f0057eb9a331559 Mon Sep 17 00:00:00 2001 From: Chuck Jazdzewski Date: Mon, 19 Jun 2017 11:12:48 -0700 Subject: [PATCH] fix(language-service): rollup `tslib` into the language service package Fixes: #17614 --- packages/language-service/package.json | 3 --- packages/language-service/rollup.config.js | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/language-service/package.json b/packages/language-service/package.json index c72a0acf6f..122710099f 100644 --- a/packages/language-service/package.json +++ b/packages/language-service/package.json @@ -7,9 +7,6 @@ "typings": "./language-service.d.ts", "author": "angular", "license": "MIT", - "dependencies": { - "tslib": "^1.7.1" - }, "repository": { "type": "git", "url": "https://github.com/angular/angular.git" diff --git a/packages/language-service/rollup.config.js b/packages/language-service/rollup.config.js index 336697a4f9..69d6ca8731 100644 --- a/packages/language-service/rollup.config.js +++ b/packages/language-service/rollup.config.js @@ -12,6 +12,7 @@ import * as path from 'path'; var m = /^\@angular\/((\w|\-)+)(\/(\w|\d|\/|\-)+)?$/; var location = normalize('../../dist/packages-dist') + '/'; var rxjsLocation = normalize('../../node_modules/rxjs'); +var tslibLocation = normalize('../../node_modules/tslib'); var esm = 'esm/'; var locations = { @@ -46,6 +47,9 @@ function resolve(id, from) { const resolved = `${rxjsLocation}${id.replace('rxjs', '')}.js`; return resolved; } + if (id == 'tslib') { + return tslibLocation + '/tslib.es6.js'; + } } var banner = `