Jarred Sumner
60b5fb95b1
WIP macros
2021-09-19 03:43:17 -07:00
Jarred Sumner
9ae35ec581
Slightly improve JSX decoding perf
2021-09-17 18:37:26 -07:00
Jarred Sumner
1176a07c93
Fix whitespace & emoji bug when parsing JSX
2021-09-17 17:40:30 -07:00
Jarred Sumner
af1061e47a
Update js_printer.zig
2021-09-17 16:09:59 -07:00
Jarred Sumner
e1ce0e8467
Fix lexer bug with UTF-16 strings
2021-09-17 16:09:26 -07:00
Jarred Sumner
bc65e40313
Fix multiple imports to CJS modules when referencing via module_id hash
2021-09-17 14:47:14 -07:00
Jarred Sumner
f2cccdd1fb
Merge branch 'main' of github.com:Jarred-Sumner/bun
2021-09-17 14:27:55 -07:00
Jarred Sumner
98e9b93b7e
global -> globalThis
2021-09-17 14:24:42 -07:00
Dov Alperin
c98e007ff7
Get bun ready for linux builds
...
Adds: conditional builds in makefile
Fixes: incorrect imports of 'JavaScriptCore.zig' (note the caps 's')
replaces with correct import of 'JavascriptCore.zig'
2021-09-17 08:43:15 -04:00
Jarred Sumner
872428de89
Fix bugs with ESM -> CJS when not bundled
2021-09-17 03:14:05 -07:00
Jarred Sumner
93441babd8
Do not attempt to HMR export {value} from, just assume it will be HMR'd (or not)
2021-09-16 22:37:11 -07:00
Jarred Sumner
1328285bbc
Update options.zig
2021-09-16 20:35:08 -07:00
Jarred Sumner
9912a4ce98
Fix export * as from
2021-09-16 20:34:48 -07:00
Jarred Sumner
d5186ee663
Add flag to dev server to disable HMR
2021-09-16 20:34:22 -07:00
Jarred Sumner
9e2910365a
Help output should print command names
2021-09-16 19:08:02 -07:00
Jarred Sumner
3be2571a31
Fix symbol name for cjs2esm
2021-09-16 18:46:27 -07:00
Jarred Sumner
6352e95d0f
When port is in use, auto-increment port number up to 10 times and then bail if all 10 are in use
2021-09-16 18:27:54 -07:00
Jarred Sumner
b6a72f7d72
Always bold ^
2021-09-16 17:49:17 -07:00
Jarred Sumner
b923134023
Delete some dead code
2021-09-16 17:38:05 -07:00
Jarred Sumner
6e82fa0dab
Print absolute paths in log errors so that ctrl+click to open file in editor works (depending on terminal)
2021-09-16 17:37:52 -07:00
Jarred Sumner
9511bf94d5
Colorize build/resolve errors and add a ^
2021-09-16 17:37:22 -07:00
Jarred Sumner
347dbc6237
Automatically rewrite TS import paths from .jsx? -> .tsx? when .jsx? is not found
...
This was already partially implemented but it was returning filenames instead of absolute paths. This matches the behavior from https://github.com/microsoft/TypeScript/issues/4595 .
2021-09-16 03:24:27 -07:00
Jarred Sumner
5a89f30841
Switch to 0.0.x instead of 0.0.0-x to fix the npm install issue
2021-09-15 23:34:17 -07:00
Jarred Sumner
472589aa14
Fix require bug in runtime.js
2021-09-15 21:30:12 -07:00
Jarred Sumner
ba9825eca9
Fix CJS symbol names
2021-09-15 21:29:49 -07:00
Jarred Sumner
f4d1a3c33d
Remove most usages of anytype in js_ast.zig
2021-09-15 21:29:20 -07:00
Jarred Sumner
be05f65339
Fix crash in bun bun
2021-09-15 21:28:06 -07:00
Jarred Sumner
93010b71b4
delete dead code
2021-09-15 18:11:56 -07:00
Jarred Sumner
62d9a18ec6
zig fmt
2021-09-15 18:11:51 -07:00
Jarred Sumner
b0bb65f494
Big Heap:
2021-09-15 18:07:08 -07:00
Jarred Sumner
09ab634d32
Fix Bun on M1.
2021-09-15 17:06:49 -07:00
Jarred Sumner
bba102c076
Warn when JIT is disabled
2021-09-15 17:04:00 -07:00
Jarred Sumner
9719ae096d
Fix build-generated typo
2021-09-14 23:07:55 -07:00
Jarred Sumner
516369d748
commit webkit update
2021-09-14 20:34:46 -07:00
Jarred Sumner
5dbbad5cc4
Support installing bun from npm
2021-09-14 16:59:21 -07:00
Jarred Sumner
24522f7d74
Include build id in welcome note
2021-09-14 13:23:51 -07:00
Jarred Sumner
4173b03f54
Include a build id
2021-09-14 02:21:40 -07:00
Jarred Sumner
bdd5502aef
SPAs now work by default when there's a public/index.html file
2021-09-14 01:28:04 -07:00
Jarred Sumner
2f301e39d7
Handle edgecase during SyntaxError that can lead to an out of bounds index access when printing source code
2021-09-14 01:24:37 -07:00
Jarred Sumner
b0598f64ea
Fix crashes when accessing request metadata
2021-09-13 22:29:44 -07:00
Jarred Sumner
4f0d4cee0b
Feature flag auto_import_buffer since it's not fully implemented yet
2021-09-13 20:56:22 -07:00
Jarred Sumner
a0b6892c09
Good enough for now solution to symbol collision
2021-09-13 02:53:18 -07:00
Jarred Sumner
359df89fe3
Fix "browser" map resolution, _almost_ fix symbol collisions, cache absolute paths for file entries
2021-09-12 23:40:12 -07:00
Jarred Sumner
dca47a565e
ok
2021-09-12 01:53:32 -07:00
Jarred Sumner
19922287aa
Fix panic handler to not double panic
2021-09-12 00:40:27 -07:00
Jarred Sumner
5944c91de4
Support importing Node.js fallback modules as ESM
2021-09-12 00:40:17 -07:00
Jarred Sumner
350569655b
Support bundling dynamically imported modules.
2021-09-12 00:39:57 -07:00
Jarred Sumner
092f9ac766
Fix CommonJS interop issue when, while linking, we find out the import is possibly CommonJS
2021-09-12 00:39:01 -07:00
Jarred Sumner
dfb65ef1ca
Reduce number of allocations for serializing error messages
2021-09-12 00:37:59 -07:00
Jarred Sumner
57ca04444b
Fix symbol collisions for JSX & React Refresh. Choose a JSX identifier based on the user's JSX import source
2021-09-12 00:37:13 -07:00