diff options
author | 2021-09-04 04:50:47 -0700 | |
---|---|---|
committer | 2021-09-04 04:50:47 -0700 | |
commit | 4f7ff6db2c393b0106260ca786172a1d8f1ea1ac (patch) | |
tree | ed2d5b712c268deaf92bc6b613df1c16171650d0 /src/linker.zig | |
parent | 0045fc36d6188d21c8999073e98e8c048f5571e9 (diff) | |
download | bun-4f7ff6db2c393b0106260ca786172a1d8f1ea1ac.tar.gz bun-4f7ff6db2c393b0106260ca786172a1d8f1ea1ac.tar.zst bun-4f7ff6db2c393b0106260ca786172a1d8f1ea1ac.zip |
Fixed memory leaks, but SSR is slower. Should move cleanup & restart steps to a real idle timeout
Former-commit-id: 9499ee3109cb336deb9380f0190631a30c9da51c
Diffstat (limited to 'src/linker.zig')
-rw-r--r-- | src/linker.zig | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/linker.zig b/src/linker.zig index f07fa3f07..dea14f675 100644 --- a/src/linker.zig +++ b/src/linker.zig @@ -166,7 +166,11 @@ pub fn NewLinker(comptime BundlerType: type) type { } pub inline fn nodeModuleBundleImportPath(this: *const ThisLinker) string { - return if (this.options.node_modules_bundle_url.len > 0) this.options.node_modules_bundle_url else this.options.node_modules_bundle.?.bundle.import_from_name; + return if (this.options.platform != .bun and + this.options.node_modules_bundle_url.len > 0) + this.options.node_modules_bundle_url + else + this.options.node_modules_bundle.?.bundle.import_from_name; } // pub const Scratch = struct { |