diff options
| author | 2023-02-28 00:01:21 -0800 | |
|---|---|---|
| committer | 2023-02-28 00:01:21 -0800 | |
| commit | ec7929b251b91745f676ce85f173516186f36c6e (patch) | |
| tree | 7b1e0378f20526a1236dab54c129a0105ffdfc83 /src/bun.js/module_loader.zig | |
| parent | 590219966edc9e79b34ab2c073ae34d14baa141a (diff) | |
| download | bun-ec7929b251b91745f676ce85f173516186f36c6e.tar.gz bun-ec7929b251b91745f676ce85f173516186f36c6e.tar.zst bun-ec7929b251b91745f676ce85f173516186f36c6e.zip | |
Implement `preload` support (like `node -r ` except in a config file) (#2231)
* Update Makefile
* Introduce `preload`
* Add a test
* Support entry points
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Diffstat (limited to 'src/bun.js/module_loader.zig')
| -rw-r--r-- | src/bun.js/module_loader.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bun.js/module_loader.zig b/src/bun.js/module_loader.zig index 0a7fe2fb6..adfa88cb1 100644 --- a/src/bun.js/module_loader.zig +++ b/src/bun.js/module_loader.zig @@ -1585,6 +1585,7 @@ pub const ModuleLoader = struct { opts.features.dynamic_require = true; opts.can_import_from_bundle = bundler.options.node_modules_bundle != null; opts.features.hot_module_reloading = false; + opts.features.top_level_await = true; opts.features.react_fast_refresh = false; opts.filepath_hash_for_hmr = 0; opts.warn_about_unbundled_modules = false; |
