aboutsummaryrefslogtreecommitdiff
path: root/src/runtime.zig
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-06-24 06:59:47 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-06-24 06:59:47 -0700
commit7bb75f55530e52447b9c68bc5b0908bf734ba184 (patch)
treee30b431d6f257824f2821c56a2ec01136938cc5e /src/runtime.zig
parent6d6a89780b10816de38c465b1e6bb583979feacd (diff)
downloadbun-7bb75f55530e52447b9c68bc5b0908bf734ba184.tar.gz
bun-7bb75f55530e52447b9c68bc5b0908bf734ba184.tar.zst
bun-7bb75f55530e52447b9c68bc5b0908bf734ba184.zip
Add dynamic require support
Diffstat (limited to 'src/runtime.zig')
-rw-r--r--src/runtime.zig7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/runtime.zig b/src/runtime.zig
index 33561f9ce..2cce4a87f 100644
--- a/src/runtime.zig
+++ b/src/runtime.zig
@@ -286,16 +286,13 @@ pub const Runtime = struct {
/// See also https://github.com/babel/babel/pull/2972
/// See also https://github.com/facebook/react/issues/5138
jsx_optimization_inline: bool = false,
-
jsx_optimization_hoist: bool = false,
trim_unused_imports: bool = false,
should_fold_numeric_constants: bool = false,
- /// inject this at the top of the file?
- /// ```js
- /// var require = import.meta.require.bind(import.meta);
- /// ```
+ /// Use `import.meta.require()` instead of require()?
+ /// This is only supported in Bun.
dynamic_require: bool = false,
replace_exports: ReplaceableExport.Map = .{},