aboutsummaryrefslogtreecommitdiff
path: root/src/bundler.zig
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-04-16 01:31:01 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-04-16 01:31:01 -0700
commit09357f55f9115bb05c57d07ee489a11e79b1a42b (patch)
tree0e8b6e4eadda21e9a6479bd27508a9ca1890d79e /src/bundler.zig
parent33049fa6fd17ee5dd85cb199f5836f400e308ae4 (diff)
downloadbun-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.zig4
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);