fix(language-service): rollup tslib
into the language service package
Fixes: #17614
This commit is contained in:
parent
3e685f98c6
commit
4e6be15069
@ -7,9 +7,6 @@
|
|||||||
"typings": "./language-service.d.ts",
|
"typings": "./language-service.d.ts",
|
||||||
"author": "angular",
|
"author": "angular",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
|
||||||
"tslib": "^1.7.1"
|
|
||||||
},
|
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/angular/angular.git"
|
"url": "https://github.com/angular/angular.git"
|
||||||
|
@ -12,6 +12,7 @@ import * as path from 'path';
|
|||||||
var m = /^\@angular\/((\w|\-)+)(\/(\w|\d|\/|\-)+)?$/;
|
var m = /^\@angular\/((\w|\-)+)(\/(\w|\d|\/|\-)+)?$/;
|
||||||
var location = normalize('../../dist/packages-dist') + '/';
|
var location = normalize('../../dist/packages-dist') + '/';
|
||||||
var rxjsLocation = normalize('../../node_modules/rxjs');
|
var rxjsLocation = normalize('../../node_modules/rxjs');
|
||||||
|
var tslibLocation = normalize('../../node_modules/tslib');
|
||||||
var esm = 'esm/';
|
var esm = 'esm/';
|
||||||
|
|
||||||
var locations = {
|
var locations = {
|
||||||
@ -46,6 +47,9 @@ function resolve(id, from) {
|
|||||||
const resolved = `${rxjsLocation}${id.replace('rxjs', '')}.js`;
|
const resolved = `${rxjsLocation}${id.replace('rxjs', '')}.js`;
|
||||||
return resolved;
|
return resolved;
|
||||||
}
|
}
|
||||||
|
if (id == 'tslib') {
|
||||||
|
return tslibLocation + '/tslib.es6.js';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var banner = `
|
var banner = `
|
||||||
|
Loading…
x
Reference in New Issue
Block a user