diff options
| author | 2023-05-06 18:20:19 -0700 | |
|---|---|---|
| committer | 2023-05-06 18:20:19 -0700 | |
| commit | 8975717bc38ecfa9f1bca119cef75515b3e94a7d (patch) | |
| tree | 609180366d127de4aaad69b83abfca679559d9d0 /src | |
| parent | 5327940132ca29eb721afbeb4709311d3622b9c5 (diff) | |
| download | bun-8975717bc38ecfa9f1bca119cef75515b3e94a7d.tar.gz bun-8975717bc38ecfa9f1bca119cef75515b3e94a7d.tar.zst bun-8975717bc38ecfa9f1bca119cef75515b3e94a7d.zip | |
Fix several transpiler tests
Diffstat (limited to 'src')
| -rw-r--r-- | src/bundler.zig | 2 |
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; |
