aboutsummaryrefslogtreecommitdiff
path: root/src/resolver (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-09-29fix(resolver): support encoded file urls (#5766)Gravatar dave caruso 1-35/+0
* start working on this * it works now * better implementation imo * yippee * more tests and better unrefing * fix leak?
2023-09-20add `emitDecoratorMetadata` (#5777)Gravatar Dylan Conway 2-0/+13
* some progess * needs more tests * make tests easier to debug * get metadata for constructor arg decorators * fix some things * merge `emitDecoratorMetadata` option * remove `^` * bundler tests and get option from tsconfig earlier * remove spaces * fix tests
2023-09-19Fixes #5769 (#5775)Gravatar Jarred Sumner 1-1/+19
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-15Make `bun run --silent` omit `"error: "..." exited with code 1` (#5459)Gravatar Jarred Sumner 1-1/+1
* Make --silent behave as expected * Make the "tsconfig.json extends" error a debug level --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-15Reduce log level for `loading tsconfig.json extends` messageGravatar Jarred Sumner 1-1/+1
2023-09-14threadGravatar Dylan Conway 1-1/+1
2023-09-14Rework bunfig docsGravatar Colin McDonnell 1-2/+5
2023-09-14remove tsconfig warningGravatar Dylan Conway 1-4/+1
2023-09-14Fix typo in HTTPThread name. (#5376)Gravatar Chris Boette 1-1/+1
2023-09-13fix(node/fetch): Make data URL fetch consistent with node (#5126)Gravatar David Hewitt 1-7/+13
2023-09-12Fix some bugs blocking Turborepo from using `bun run` (#5071)Gravatar Jarred Sumner 1-6/+11
* Clean up some error handling when loading `tsconfig.json` * [bun run] don't parse tsconfig.json for package.json scripts * Make this error message better * Bump * Don't print build errors twice * Handle quotes in error messages a little better * Add a couple tests --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-11fix(path): Fix edge case in `path.relative` (#4811)Gravatar Ai Hoshino 1-2/+2
Close: #4789
2023-08-28just kernel32 things (#4354)Gravatar Jarred Sumner 2-16/+16
* just kernel32 things * more * Update linux_c.zig * Update windows_c.zig * Add workaround Workaround https://github.com/ziglang/zig/issues/16980 * Rename http.zig to bun_dev_http_server.zig * Rename usages * more * more * more * thanks tigerbeetle * Rename `JSC.Node.Syscall` -> `bun.sys` * more * woops * more! * hmm * it says there are only 37 errors, but that's not true * populate argv * it says 32 errors! * 24 errors * fix regular build * 12 left! * Still 12 left! * more * 2 errors left... * 1 more error * Add link to Tigerbeetle * Fix the remainign error * Fix test timeout * Update syscall.zig --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-08-24fix buildGravatar Dylan Conway 1-2/+2
2023-08-24update zig to 0.11.0 (#4233)Gravatar Jason 1-28/+28
* WIP * backup * more change * json related error sovled * number related issue solved * revert WriterType changed before * destroy -> free * jsonStringify related issues solved * fix mem.free expected []T or *[_]T, passed [*]const u8 * fix expected []T or *[_]T, passed [*:0]const u8 * fix build script * fix build script, for real * replace 0.11.0-dev.4006+bf827d0b5 to 0.12.0-dev.161+6a5463951 * fix build on macOS, COPYFILE.DATA -> COPYFILE_DATA * fix the last destroy on [*]ptr issue --------- Co-authored-by: Dylan Conway <35280289+dylan-conway@users.noreply.github.com>
2023-08-20Fix test failures from 3a9a6c63a (#4231)Gravatar Jarred Sumner 1-9/+21
cc @Hanaasagi Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-08-20Fix(bundler): use different alias mappings based on the target. (#4163)Gravatar Ai Hoshino 1-2/+2
* Fix(bundler): use different alias mappings based on the target. Close: #3844 * chore: reduce duplicated code. * chore: split to two separate ComptimeStringMap.
2023-08-17Support Nitro (#4098)Gravatar dave caruso 1-0/+5
* Add formatWithOptions * tests and tweaks * adjust * changes * hi * add mark/measure stubs * stuff * allow unix absolute paths here * typo * rebase * fix stats
2023-08-11Deprecate loading `node_modules.bun` (#4131)Gravatar Jarred Sumner 1-3/+1
* Deprecate loading `node_modules.bun` * realpath * regenerate schema * More * more * Update cli.zig --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-08-07implement fetching data urls (#4000)Gravatar Dylan Conway 2-7/+30
* fetch data urls * `byteSlice` * deinit slice * allocate `mime_type` string if needed * `content_type_allocated` and uncomment tests * `str_` * createAtom and slice decode result
2023-08-03allow bundling builtins for browser (#3959)Gravatar Dylan Conway 1-6/+3
* Update resolver.zig * bundle resolve error for non-existent builtins * tests
2023-08-03Fix edge case in `path.relative`. (#3952)Gravatar Ai Hoshino 1-3/+10
Close: #3924
2023-07-31throw error if node module does not exist (#3913)Gravatar Vlad Sirenko 1-0/+6
2023-07-25Make this name betterGravatar Jarred Sumner 1-1/+1
2023-07-24Trace module resolutionGravatar Jarred Sumner 1-0/+3
2023-07-18zig upgrade (#3667)Gravatar Dylan Conway 3-26/+26
* upgrade * more fixes * Bump Zig --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-17package json `main` field extension order (#3664)Gravatar Dylan Conway 1-3/+9
2023-07-04[install] fix run-time module loading (#3510)Gravatar Alex Lam S.L 1-26/+20
- fix version buffer confusion - improve workaround to handle cached modules fixes #3507
2023-06-28use main field over module for runtime (#3448)Gravatar Dylan Conway 1-1/+8
* use main field over module for runtime * move flag to `Resolver` * set `prefer_module_field` in `initWithModuleGraph`
2023-06-28[install] workaround run-time module loading issue (#3432)Gravatar Alex Lam S.L 1-14/+13
2023-06-26implement `_nodeModulePaths` and `require.main.paths` (#3411)Gravatar Dylan Conway 1-0/+95
* tests in progress * add `require.main.paths`, add every dir up to root * remove imports
2023-06-21upgrade zig to `v0.11.0-dev.3737+9eb008717` (#3374)Gravatar Dylan Conway 4-19/+18
* progress * finish `@memset/@memcpy` update * Update build.zig * change `@enumToInt` to `@intFromEnum` and friends * update zig versions * it was 1 * add link to issue * add `compileError` reminder * fix merge * format * upgrade to llvm 16 * Revert "upgrade to llvm 16" This reverts commit cc930ceb1c5b4db9614a7638596948f704544ab8. --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com> Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-02use NODE_ENV for react-jsx or react-jsxdev (#3184)Gravatar Dylan Conway 2-10/+6
2023-06-01random fixes that help vite/sveltekit (#3140)Gravatar dave caruso 1-0/+35
* existsSync with invalid paths should return false * partially support file urls (does not do percent encoding) * add utf16 support for Path.isAbsoluteString * Update src/resolver/resolver.zig Co-authored-by: Jarred Sumner <jarred@jarredsumner.com> * fixups * revert * prettier format --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-05-24fix setting `jsxImportSource`, `jsxFactory`, and `jsxFragmentFactory` (#3057)Gravatar Dylan Conway 2-3/+7
* default automatic, merge jsx flags from multiple tsconfigs * use entire package name * some tests * more tests
2023-05-14Single-file standalone Bun executables (#2879)Gravatar Jarred Sumner 1-1/+22
* Add LIEF * Compile LIEF * Implement support for embedding files on macOS * proof of concept * Add zstd * Implement runtime support * Move some code around * Update .gitmodules * Upgrade zig https://github.com/ziglang/zig/pull/15278 * leftover * leftover * delete dead code * Fix extname * Revert "Upgrade zig" This reverts commit dd968f30bffb6c06e34302645a3a4468c957fb4e. * Revert "leftover" This reverts commit 7664de7686276cfba431103847d35b9270433dee. * Revert "leftover" This reverts commit 498005be06a8a1747d48824310e5a020b1f90d97. * various fixes * it works! * leftover * Make `zig build` a little faster * give up on code signing support * Support Linux & macOS * Finish removing LIEF * few more * Add zstd to list of deps * make it pretty --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-05-12`root` bundle option (#2859)Gravatar Dylan Conway 1-0/+143
* handle multiple output files and `[dir]` * get the realpath of `root_dir` * duplicate output paths * add `rootdir` to `JSBundler` * use realpath of input file * add tests for naming and root --------- Co-authored-by: Dave Caruso <me@paperdave.net>
2023-05-09Fix regression with `bun test` not recursively scanning the directory treeGravatar Jarred Sumner 1-3/+1
2023-05-09don't replace with there isn't a star (#2825)Gravatar Dylan Conway 1-5/+9
2023-05-08Fix incorrect fd usageGravatar Dylan Conway 1-1/+3
2023-05-08Fix bug in Bun.build() where it wouldn't pick up changes to directories on ↵Gravatar Jarred Sumner 2-50/+99
rebuilds (#2824) Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-05-01Fix crashGravatar Jarred Sumner 1-1/+4
2023-05-01[install] handle `devDependencies` of local folders (#2781)Gravatar Alex Lam S.L 1-1/+1
fixes #2653
2023-04-28bundler tests: rest of default.test.ts and starting jsx tests (#2765)Gravatar dave caruso 2-3/+3
2023-04-28[resolver] Propagate module type from package.json `"exports"` when possibleGravatar Jarred Sumner 2-5/+33
2023-04-28Use global allocator tsconfig.jsonGravatar Jarred Sumner 1-3/+6
2023-04-22Make `Bun.build` more reliable (#2718)Gravatar Jarred Sumner 3-149/+188
* One possible implementation to make `Bun.build` work better * Pass allocator in * Make our temporary buffers a little safer * rename * Fix memory corruption in symbol table * Add support for deferred idle events in ThreadPool * Free more memory * Use a global allocator FS cache * more `inline` * Make duping keys optional in StringMap * Close file handles more often * Update router.zig * wip possibly delete this commit * Fix memory issues and reduce memory usage * > 0.8 * Switch to AsyncIO.Waker and fix memory leak in JSBundleCompletionTask * We don't need to clone this actually * Fix error * Format * Fixup * Fixup --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-04-21Keep the node crypt otestGravatar Jarred Sumner 1-2/+2
2023-04-19Fix broken autocompleteGravatar Jarred Sumner 6-9/+9
2023-04-18use properties length instead of capacity (#2687)Gravatar Dylan Conway 1-1/+1