aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bundler/bundle_v2.zig3
-rw-r--r--src/options.zig2
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;