mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-30 01:04:49 -05:00
In bundle declaration emit, refuse to rewrite nonrelative references to files outside the common source directory (#42306)
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
// @declaration: true
|
||||
// @emitDeclarationOnly: true
|
||||
// @outFile: dist/index.d.ts
|
||||
// @currentDirectory: /a
|
||||
// @noImplicitReferences: true
|
||||
// @filename: /b/index.ts
|
||||
export * from "./src/"
|
||||
// @filename: /b/src/index.ts
|
||||
export class B {}
|
||||
// @filename: /a/src/index.ts
|
||||
import { B } from "b";
|
||||
|
||||
export default function () {
|
||||
return new B();
|
||||
}
|
||||
// @filename: /a/index.ts
|
||||
export * from "./src/"
|
||||
// @link: /b -> /a/node_modules/b
|
||||
Reference in New Issue
Block a user