refactor(ivy): ngcc - remove the targetPath properties of Transformer and Renderer (#29556)

We have already removed this concept from the public API. This just cleans it out altogether.

The `targetPath` was an alternative output path to the original `basePath`.
This is not really a very useful concept, since the actual target path
of each output file is more complex and not consistently relative to the `basePath`.

PR Close #29556
This commit is contained in:
Pete Bacon Darwin
2019-03-27 16:48:20 +00:00
committed by Jason Aden
parent 632669f069
commit c456b73302
8 changed files with 13 additions and 16 deletions

View File

@ -28,7 +28,7 @@ function setup(file: {name: string, contents: string}) {
referencesRegistry, [AbsoluteFsPath.fromUnchecked('/')], false)
.analyzeProgram();
const switchMarkerAnalyses = new SwitchMarkerAnalyzer(host).analyzeProgram(bundle.src.program);
const renderer = new EsmRenderer(host, false, bundle, dir, dir);
const renderer = new EsmRenderer(host, false, bundle, dir);
return {
host,
program: bundle.src.program,

View File

@ -28,7 +28,7 @@ function setup(file: {name: string, contents: string}) {
referencesRegistry, [AbsoluteFsPath.fromUnchecked('/')], false)
.analyzeProgram();
const switchMarkerAnalyses = new SwitchMarkerAnalyzer(host).analyzeProgram(bundle.src.program);
const renderer = new Esm5Renderer(host, false, bundle, dir, dir);
const renderer = new Esm5Renderer(host, false, bundle, dir);
return {
host,
program: bundle.src.program,

View File

@ -21,7 +21,7 @@ import {makeTestEntryPointBundle} from '../helpers/utils';
class TestRenderer extends Renderer {
constructor(host: Esm2015ReflectionHost, isCore: boolean, bundle: EntryPointBundle) {
super(host, isCore, bundle, '/src', '/dist');
super(host, isCore, bundle, '/src');
}
addImports(output: MagicString, imports: {specifier: string, qualifier: string}[]) {
output.prepend('\n// ADD IMPORTS\n');