Closed
Description
TypeScript Version: 2.8.3
Search Terms:
index resolution
resolution
Code
index.js
export * from "./test"
test/index.js
export const x = "hello";
Transpile code;
const ts = require("typescript");
const options = { module: ts.ModuleKind.AMD, target: ts.ScriptTarget.ES5, allowJs: true, outDir: "out" };
const host = ts.createCompilerHost(options);
const program = ts.createProgram(["index.js"], options, host);
program.emit();
Expected behavior:
both files get emitted and downleveled
Actual behavior:
test/index.js
is not resolved and only the root index.js
is being transpiled, when using the API to downlevel some JS files. If I change the export to export * from "./test/index"
all files are being transpiled.
Related Issues:
ng-packagr/ng-packagr#784
Metadata
Metadata
Assignees
Labels
No labels