aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-04-17 17:33:21 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-04-17 17:33:21 -0700
commitb758779c4916a726a26d90b163a4e01dd251ddd5 (patch)
treea8d9ab209a2c45f367ae0631e1ccdbd9f0d3acdd /src
parent3a63fe457d4046b9d325953c9050f0598711aa3d (diff)
downloadbun-b758779c4916a726a26d90b163a4e01dd251ddd5.tar.gz
bun-b758779c4916a726a26d90b163a4e01dd251ddd5.tar.zst
bun-b758779c4916a726a26d90b163a4e01dd251ddd5.zip
Fix missing should_fold_typescript_constant_expressions
Diffstat (limited to 'src')
-rw-r--r--src/bundler/bundle_v2.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bundler/bundle_v2.zig b/src/bundler/bundle_v2.zig
index d97fb7cae..ae381bcf7 100644
--- a/src/bundler/bundle_v2.zig
+++ b/src/bundler/bundle_v2.zig
@@ -948,6 +948,7 @@ const ParseTask = struct {
opts.features.trim_unused_imports = loader.isTypeScript() or (bundler.options.trim_unused_imports orelse false);
opts.features.inlining = bundler.options.minify_syntax;
opts.features.minify_syntax = bundler.options.minify_syntax;
+ opts.features.should_fold_typescript_constant_expressions = opts.features.inlining or loader.isTypeScript();
opts.tree_shaking = task.tree_shaking;
opts.module_type = task.module_type;