-
Notifications
You must be signed in to change notification settings - Fork 5k
ai slop #36754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ai slop #36754
Changes from 2 commits
a284f83
1d09776
50ecbf6
fc5e62f
1872e72
01c44fd
ecf4a52
d0c8d9e
b9a299f
ca39f1c
881610d
aa21572
b73485c
f3ff602
cbf17f5
a026d5b
1a73691
d331322
5573aa7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -100,6 +100,15 @@ bun_core::comptime_string_map! { | |
| }; | ||
| } | ||
|
|
||
| /// TypeScript declaration files: `foo.d.ts`, `foo.d.mts`, `foo.d.cts`. | ||
| /// Matches the file-name rule tsc uses (`isDeclarationFileName`), minus the | ||
| /// rare `.d.*.ts` arbitrary-extension form. | ||
| pub fn is_type_script_declaration_file(path: &[u8]) -> bool { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there some more canonical function that offers this behaviour? Module resolution is a complicated topic. The code that implements it must be extremely clear and easy to understand and read, and should be colocated. Maybe make a pull request before this one that improves and refactors and restructures many parts of module resolution; stacking this PR afterwards on top. |
||
| bun_core::strings::has_suffix_comptime(path, b".d.ts") | ||
| || bun_core::strings::has_suffix_comptime(path, b".d.mts") | ||
| || bun_core::strings::has_suffix_comptime(path, b".d.cts") | ||
| } | ||
|
|
||
| impl Loader { | ||
| #[inline] | ||
| pub fn is_css(self) -> bool { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.