diff options
author | 2023-04-16 01:31:01 -0700 | |
---|---|---|
committer | 2023-04-16 01:31:01 -0700 | |
commit | 09357f55f9115bb05c57d07ee489a11e79b1a42b (patch) | |
tree | 0e8b6e4eadda21e9a6479bd27508a9ca1890d79e /src/bundler.zig | |
parent | 33049fa6fd17ee5dd85cb199f5836f400e308ae4 (diff) | |
download | bun-09357f55f9115bb05c57d07ee489a11e79b1a42b.tar.gz bun-09357f55f9115bb05c57d07ee489a11e79b1a42b.tar.zst bun-09357f55f9115bb05c57d07ee489a11e79b1a42b.zip |
Fix bugs with loading `jsxDEV` when it should be `jsx` or vice versa
Diffstat (limited to 'src/bundler.zig')
-rw-r--r-- | src/bundler.zig | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/bundler.zig b/src/bundler.zig index aba5f9e5a..00a9d6954 100644 --- a/src/bundler.zig +++ b/src/bundler.zig @@ -565,9 +565,7 @@ pub const Bundler = struct { try this.runEnvLoader(); - if (this.env.isProduction()) { - this.options.jsx.setProduction(this.allocator, true); - } + this.options.jsx.setProduction(this.env.isProduction()); js_ast.Expr.Data.Store.create(this.allocator); js_ast.Stmt.Data.Store.create(this.allocator); |