-
-
Notifications
You must be signed in to change notification settings - Fork 595
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(rspack_core): configurable tsconfig project references (#4290)
closes #4211
- Loading branch information
Showing
32 changed files
with
263 additions
and
24 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
packages/rspack/tests/configCases/resolve-new/tsconfig-project-references-auto/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { a } from "./project_a/src/index"; | ||
import { b } from "./project_b/src/index"; | ||
// import { c } from './project_c/index' | ||
|
||
it("should import the referenced alias", () => { | ||
expect(a).toEqual("a"); | ||
expect(b).toEqual("b"); | ||
// expect(c).toEqual("c"); | ||
}); |
9 changes: 9 additions & 0 deletions
9
...rspack/tests/configCases/resolve-new/tsconfig-project-references-auto/project_a/conf.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"compilerOptions": { | ||
"composite": true, | ||
"baseUrl": "./src", | ||
"paths": { | ||
"@/*": ["./aliased/*"] | ||
} | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
...s/configCases/resolve-new/tsconfig-project-references-auto/project_a/src/aliased/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const a = "a"; |
1 change: 1 addition & 0 deletions
1
...ack/tests/configCases/resolve-new/tsconfig-project-references-auto/project_a/src/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { a } from "@/index"; |
1 change: 1 addition & 0 deletions
1
...s/configCases/resolve-new/tsconfig-project-references-auto/project_b/src/aliased/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const b = "b"; |
1 change: 1 addition & 0 deletions
1
...ack/tests/configCases/resolve-new/tsconfig-project-references-auto/project_b/src/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { b } from "@/index"; |
9 changes: 9 additions & 0 deletions
9
...ck/tests/configCases/resolve-new/tsconfig-project-references-auto/project_b/tsconfig.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"compilerOptions": { | ||
"composite": true, | ||
"baseUrl": "./src", | ||
"paths": { | ||
"@/*": ["./aliased/*"] | ||
} | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
.../rspack/tests/configCases/resolve-new/tsconfig-project-references-auto/project_c/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { c } from "@/index"; |
1 change: 1 addition & 0 deletions
1
...s/configCases/resolve-new/tsconfig-project-references-auto/project_c/src/aliased/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const c = "c"; |
8 changes: 8 additions & 0 deletions
8
...ck/tests/configCases/resolve-new/tsconfig-project-references-auto/project_c/tsconfig.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"compilerOptions": { | ||
"composite": true, | ||
"paths": { | ||
"@/*": ["./src/aliased/*"] | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
packages/rspack/tests/configCases/resolve-new/tsconfig-project-references-auto/tsconfig.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"references": [ | ||
{ | ||
"path": "./project_a/conf.json" | ||
}, | ||
{ | ||
"path": "./project_b" | ||
}, | ||
{ | ||
"path": "./project_c/tsconfig.json" | ||
} | ||
] | ||
} |
Oops, something went wrong.