aboutsummaryrefslogtreecommitdiff
path: root/src (follow)
AgeCommit message (Collapse)AuthorFilesLines
2021-09-27Set macros enabledjarred/ast-againGravatar Jarred Sumner 1-1/+1
2021-09-27Bundling ignores macrosGravatar Jarred Sumner 1-14/+22
2021-09-27bounds checkingGravatar Jarred Sumner 1-1/+1
2021-09-26Allow nested arraysGravatar Jarred Sumner 2-27/+105
2021-09-26Fix getting object propertiesGravatar Jarred Sumner 3-25/+63
2021-09-26Update `Bun.readFileAsBytes` and `Bun.readFile` to also accept an array of ↵Gravatar Jarred Sumner 1-91/+143
filepaths to join For example: ``` Bun.readFileAsString([Bun.main, "../pages/hi.tsx"]); ```
2021-09-26Add `JSArrayIterator`, don't call JSC::Options after JSC already loaded once ↵Gravatar Jarred Sumner 2-9/+41
(that causes a crash)
2021-09-26Most of macro implementationGravatar Jarred Sumner 6-96/+612
2021-09-26Basic macro implGravatar Jarred Sumner 12-629/+1557
2021-09-25WIPGravatar Jarred Sumner 3-107/+651
2021-09-25fix incorrect commentGravatar Jarred Sumner 1-1/+1
2021-09-25Fix bug with resolving `"browser"` field in package.jsonGravatar Jarred Sumner 1-1/+1
It was resolving from the parent directory of the result instead of the browser scope.
2021-09-25Fix lexing bug with the \f form feed character (used in Emotion & Styled ↵Gravatar Jarred Sumner 1-1/+1
Components)
2021-09-25Fix crashing edgecase when both JSX automatic and JSX classic imports are ↵Gravatar Jarred Sumner 1-28/+44
necessary and unbundled
2021-09-25Fix visiting bug when using JSX with a spread prop and a key and one of the ↵Gravatar Jarred Sumner 1-10/+4
props is an anonymous function More specifically, Bun shouldn't be visiting the same properties more than once. That was the cause.
2021-09-24skeleton codebun-v0.0.22Gravatar Jarred Sumner 9-219/+500
2021-09-24macroGravatar Jarred Sumner 3-4/+681
2021-09-24:shaved_ice:Gravatar Jarred Sumner 1-4/+8
2021-09-24@setColdGravatar Jarred Sumner 1-0/+4
2021-09-24Remove `cache_files` since it's not used and causes slower Bun compilation timesGravatar Jarred Sumner 8-5052/+4949
2021-09-23Add link to webpack docGravatar Jarred Sumner 1-0/+1
2021-09-23:runner:jarred/bundle-workspace-packagesGravatar Jarred Sumner 1-1/+1
2021-09-23Handle more edgecases in our CJS2ESM conversion codeGravatar Jarred Sumner 4-9/+57
2021-09-23When bundling JSON, only use JSON.parse when the input is ASCII.Gravatar Jarred Sumner 3-15/+63
We don't want to add an extra pass over the input to convert it to UTF16. And JS engines storing strings as UTF-16 is more expensive anyway, so the runtime win here probably isn't as big (though open to evidence to the contrary!)
2021-09-23Add __exportValue and __exportDefault to runtimeGravatar Jarred Sumner 5-4/+51
2021-09-23When bundling, parse the JSON to verify correctness, but print it as a ↵Gravatar Jarred Sumner 1-2/+24
string for better runtime performance
2021-09-23Safer export default transform for bundled codeGravatar Jarred Sumner 2-3/+52
2021-09-23Fix crash when loading JS fails really quicklyGravatar Jarred Sumner 1-1/+1
2021-09-23Globally define require() so that UMD modules which check for the existence ↵Gravatar Jarred Sumner 1-0/+1
of require() to determine if it's CommonJS use the CommonJS code path instead of the globalThis code path
2021-09-23Embed regeneratorRuntime so that things which expect it to be a global still ↵Gravatar Jarred Sumner 3-0/+767
work
2021-09-23Fix bug when multiple-levels of nested exports when bundled have a boolean ↵Gravatar Jarred Sumner 2-9/+17
.default value
2021-09-23Support `alwaysBundle` for workspace packagesGravatar Jarred Sumner 1-17/+180
2021-09-23Add a pointer to the parent package_json for a directory. This reduces ↵Gravatar Jarred Sumner 2-23/+34
pointer chasing
2021-09-23Fix another simplification bugGravatar Jarred Sumner 1-23/+20
2021-09-23Fix a simplification bugGravatar Jarred Sumner 1-1/+1
2021-09-23Use the package_json hash for matching bundled modules instead of searching ↵Gravatar Jarred Sumner 1-76/+41
strings (should improve perf a little)
2021-09-23Add `"bun": { "alwaysBundle": ["packageName"] },` to package.jsonGravatar Jarred Sumner 1-0/+23
This is for monorepos that symlink directories into node_modules. For example, if you have a design system in your monorepo, you probably want to always bundle that.
2021-09-22Extremely minor perf improvementsGravatar Jarred Sumner 2-6/+7
2021-09-22Update query_string_map.zigGravatar Jarred Sumner 1-7/+13
2021-09-22Allow URLs containing absolute filepaths in imports if they match specific ↵Gravatar Jarred Sumner 3-5/+46
file extensions This is to support ../../ imports Allowlisting to specific file extensions prevents common webserver security vulnerabilities like reading /etc/passwd
2021-09-22Fix edgecase with whether to wrap arrow expressions in parentheses when printingGravatar Jarred Sumner 1-2/+2
2021-09-22Fix edgecase with bare imports inside .bunGravatar Jarred Sumner 1-8/+13
2021-09-22Print how many lines of code was parsed in `bun bun`Gravatar Jarred Sumner 4-17/+62
2021-09-22Add disabled status to ESM resolutionjarred/exports-mapGravatar Jarred Sumner 1-0/+7
2021-09-22Fix parsing bug with arrays that have default valuesGravatar Jarred Sumner 1-5/+8
2021-09-22package json exports seems to work now!!!Gravatar Jarred Sumner 2-12/+26
2021-09-21Fix the compiler errorsGravatar Jarred Sumner 5-53/+59
2021-09-21Resolve "exports" field in package.json (doesn't work yet)Gravatar Jarred Sumner 2-1/+194
2021-09-21Add "exports" to PackageJSONGravatar Jarred Sumner 1-1/+12
2021-09-21Most of the ESM resolution algorithm (still untested)Gravatar Jarred Sumner 2-34/+657