Jarred Sumner
9c19383843
Fix crash when importing a file with an unknown extension
2023-05-15 04:35:59 -07:00
Jarred Sumner
47d2e2cb19
Make bun build --compile a little more resilient, output better errors, and clean up files
2023-05-15 04:35:21 -07:00
Jarred Sumner
4d751db27a
More DCE
2023-05-15 02:36:43 -07:00
Jarred Sumner
e7e4030299
Fix bug with req.url set incorrectly ( #2881 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-05-15 01:52:51 -07:00
Jarred Sumner
d3a72a1254
Set more things to const
2023-05-15 00:00:13 -07:00
Jarred Sumner
9acf854f5b
Workaround https://github.com/ziglang/zig/issues/15715
2023-05-14 23:38:55 -07:00
Jarred Sumner
8cce69e7c2
wip
2023-05-14 23:14:45 -07:00
Jarred Sumner
a425376c3d
Fix process.argv with standalone
2023-05-14 23:09:19 -07:00
Jarred Sumner
c367408233
a little less inline
2023-05-14 21:15:35 -07:00
Jarred Sumner
328d09129a
Fix scope chain bug
2023-05-14 20:56:06 -07:00
Ciro Spaciari
e096a03e3e
fix(spawn) add Uint8Array support for stdout ( #2866 )
...
* add array_buffer support for stdout
* fix comment
* fix param name on baby_list
* keep test names consistent
* add more test cases
2023-05-14 10:22:02 -07:00
Ciro Spaciari
bf9e40d5b4
feat(Timer.refresh) add refresh support on Timer ( #2874 )
...
* add refresh support on Timer
* fix this return
* add refresh setTimeout tests
* fix tests and add setInterval test
* use setCached for arguments and callback
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-05-14 10:18:56 -07:00
Jarred Sumner
2a66229b0f
fixup
2023-05-14 06:31:17 -07:00
Jarred Sumner
688637d835
fix flags
2023-05-14 06:30:47 -07:00
Jarred Sumner
893f70fee4
Single-file standalone Bun executables ( #2879 )
...
* 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 dd968f30bf .
* Revert "leftover"
This reverts commit 7664de7686 .
* Revert "leftover"
This reverts commit 498005be06 .
* 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-14 06:13:39 -07:00
Ciro Spaciari
f48f48795b
proper stub for sockets ( #2868 )
2023-05-12 09:27:17 -07:00
Jarred Sumner
8f3b648602
finish #2864
2023-05-12 08:53:23 -07:00
Dylan Conway
5f897589fc
disable sloppy mode block level functions when not bundling ( #2864 )
...
* enable only during bundling
* add `willUseNumberRenamer()`
2023-05-12 08:32:24 -07:00
Dylan Conway
4d5d0d075a
root bundle option (#2859 )
...
* 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-12 07:33:07 -07:00
Jarred Sumner
c815716899
[bundler] Don't wait on sourcmaps that don't exist
2023-05-12 07:28:56 -07:00
Jarred Sumner
6f0f506e95
[bundler] De-optimize import defaultIdentifier from './foo.cjs'
2023-05-12 07:28:40 -07:00
Jarred Sumner
da10cd6010
[bundler] Empty ESM gets undefined, empty CJS gets {}
2023-05-12 07:27:53 -07:00
Jarred Sumner
a46d3162ae
Fix importstar_ts/ReExportTypeOnlyFileES6
2023-05-12 07:27:25 -07:00
Jarred Sumner
8340b98352
[bundler] Disable export star redirect code size optimization
2023-05-12 07:14:48 -07:00
Jarred Sumner
d2e09ce519
[bundler] Fix export * from ./my-cjs-file.cjs'
2023-05-12 04:11:21 -07:00
Jarred Sumner
1e450dbcab
[bundler] Implement export * from code size optimization
2023-05-12 04:11:21 -07:00
Jarred Sumner
231da81528
[bundler] Fix --transpile --outfile
2023-05-12 04:11:21 -07:00
Ciro Spaciari
6070e135e9
fix proxy status return ( #2860 )
2023-05-12 08:06:17 -03:00
Ciro Spaciari
f8c840aec7
fix large stdout output ( #2850 )
...
* fix large stdout output
* remove skip from #2674 for testing
* add big stdout test using spawnSync
* add bunEnv on big stdout test
2023-05-12 08:05:46 -03:00
Jarred Sumner
273ccbc241
[bundler] Fix bug with export default TypeScriptType
2023-05-12 02:02:35 -07:00
Jarred Sumner
3f01e2a519
alphabetize
2023-05-12 01:49:17 -07:00
Jarred Sumner
5b3e18e028
Fix regression
2023-05-12 01:49:00 -07:00
Jarred Sumner
155110a03a
Fix our tree shaking optimization
2023-05-11 23:19:21 -07:00
Jarred Sumner
3bb5c45385
Fix require() on a converted file
2023-05-11 23:18:36 -07:00
Jarred Sumner
e785b0872a
Fix tree shaking flag
2023-05-11 23:17:06 -07:00
Jarred Sumner
99cce67d61
enable tree shaking
2023-05-11 21:40:47 -07:00
dave caruso
4381204cdb
oops ( #2863 )
...
* oops
* oops part 2
2023-05-11 21:25:03 -07:00
Jarred Sumner
0cee7c028a
woops
2023-05-11 20:05:46 -07:00
Jarred Sumner
bfcc0b8960
handle module.exports.foo = class {} in the entry point in the runtime
...
Related to https://github.com/oven-sh/bun/issues/2862 , but does not fix it
2023-05-11 20:01:10 -07:00
dave caruso
dfd0f3e252
Allow reading config from within plugins, and partially implement esbuild initialOptions ( #2861 )
...
* Implement plugin build.config and initialOptions
* update types
* default initialoptions entrypoints
2023-05-11 22:58:41 -04:00
Jarred Sumner
136b50c746
formatting
2023-05-11 19:31:55 -07:00
Jarred Sumner
5bb42c81e4
give up on this optimization so we can ship
2023-05-11 19:31:39 -07:00
Jarred Sumner
56b8458c62
call stop before emit
2023-05-11 15:10:40 -07:00
Jarred Sumner
7141e19a10
fixup
2023-05-11 15:10:06 -07:00
Jarred Sumner
5c08200b18
[node:http] handle errors generated by fetch
2023-05-11 15:09:30 -07:00
Jarred Sumner
d67bdb7e9b
[node:http] Fix close() to accept a callback and implement closeAllConnections
2023-05-11 15:09:14 -07:00
Jarred Sumner
77eb61a1fe
Fix OutputKind, add "use client" and "use server"
2023-05-11 15:08:18 -07:00
dave caruso
6a163cf933
bundler tests and improve Bun.build return type ( #2833 )
...
* importstar_ts
* tests
* run acorn test suite
* bench tweaks
* test
* bun.build tests very incomplete
* remove dataurl and base64 loaders from tests since they dont work yet
* tests
* stuff
* stuff
* add errors and array of blobs
* work so far
* docs
* requested changes
* fix overwrite docs
* remove this file
2023-05-11 14:42:54 -07:00
Dylan Conway
02cad591f8
fix child process tests ( #2584 )
...
* always handle exit on next tick
* emit spawn immediately
2023-05-11 14:39:44 -07:00
Ciro Spaciari
3530cfac68
fix redirect: \'manual\' and setTimeout on node:http request ( #2848 )
2023-05-11 14:25:21 -07:00