diff options
author | 2023-04-17 03:56:52 -0700 | |
---|---|---|
committer | 2023-04-17 03:56:52 -0700 | |
commit | 4cb739a8c51fb410ca077b87498f2e5cb2a8e4fe (patch) | |
tree | 9083d24141104c25062a8d13bebac246e7673d45 | |
parent | 01a03bcce45285d3f2f3e0148e3c3abea5b1b983 (diff) | |
download | bun-4cb739a8c51fb410ca077b87498f2e5cb2a8e4fe.tar.gz bun-4cb739a8c51fb410ca077b87498f2e5cb2a8e4fe.tar.zst bun-4cb739a8c51fb410ca077b87498f2e5cb2a8e4fe.zip |
enable minify syntax by default in the runtime
-rw-r--r-- | src/bundler/bundle_v2.zig | 3 | ||||
-rw-r--r-- | src/options.zig | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/bundler/bundle_v2.zig b/src/bundler/bundle_v2.zig index 1b678610d..d97fb7cae 100644 --- a/src/bundler/bundle_v2.zig +++ b/src/bundler/bundle_v2.zig @@ -101,7 +101,6 @@ pub const ThreadPool = struct { } pub fn start(this: *ThreadPool, v2: *BundleV2) !void { - v2.bundler.env.loadProcess(); this.v2 = v2; this.cpu_count = @truncate(u32, @max(std.Thread.getCpuCount() catch 2, 2)); @@ -140,9 +139,9 @@ pub const ThreadPool = struct { quit: bool = false, ast_memory_allocator: js_ast.ASTMemoryAllocator = undefined, - has_notify_started: bool = false, has_created: bool = false, + pub fn get() *Worker { var worker = @ptrCast( *ThreadPool.Worker, diff --git a/src/options.zig b/src/options.zig index ca5acd793..490cef7af 100644 --- a/src/options.zig +++ b/src/options.zig @@ -1837,6 +1837,8 @@ pub const BundleOptions = struct { opts.tree_shaking = opts.serve or opts.platform.isBun() or opts.production or is_generating_bundle; opts.inlining = opts.tree_shaking; + if (opts.inlining) + opts.minify_syntax = true; if (opts.origin.isAbsolute()) { opts.import_path_format = ImportPathFormat.absolute_url; |