aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-05-06 18:20:19 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-05-06 18:20:19 -0700
commit8975717bc38ecfa9f1bca119cef75515b3e94a7d (patch)
tree609180366d127de4aaad69b83abfca679559d9d0 /src
parent5327940132ca29eb721afbeb4709311d3622b9c5 (diff)
downloadbun-8975717bc38ecfa9f1bca119cef75515b3e94a7d.tar.gz
bun-8975717bc38ecfa9f1bca119cef75515b3e94a7d.tar.zst
bun-8975717bc38ecfa9f1bca119cef75515b3e94a7d.zip
Fix several transpiler tests
Diffstat (limited to 'src')
-rw-r--r--src/bundler.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bundler.zig b/src/bundler.zig
index fa3cca0d7..011634b7a 100644
--- a/src/bundler.zig
+++ b/src/bundler.zig
@@ -1387,7 +1387,7 @@ pub const Bundler = struct {
opts.legacy_transform_require_to_import = bundler.options.allow_runtime and !bundler.options.target.isBun();
opts.features.allow_runtime = bundler.options.allow_runtime;
opts.features.trim_unused_imports = bundler.options.trim_unused_imports orelse loader.isTypeScript();
- opts.features.should_fold_typescript_constant_expressions = loader.isTypeScript() or target.isBun() or bundler.options.inlining;
+ opts.features.should_fold_typescript_constant_expressions = loader.isTypeScript() or target.isBun() or bundler.options.minify_syntax;
opts.features.dynamic_require = target.isBun();
opts.transform_only = bundler.options.transform_only;