index.md (650B)
1
2 ---
3 date: 2020-07-17
4 title: "Hugo 0.74.2: A couple of Bug Fixes"
5 description: "This version fixes a couple of bugs introduced in 0.74.0."
6 categories: ["Releases"]
7 images:
8 - images/blog/hugo-bug-poster.png
9
10 ---
11
12
13
14 Add .Defines to js.Build options [35011bcb](https://github.com/gohugoio/hugo/commit/35011bcb26b6fcfcbd77dc05aa8246ca45b2c2ba) [@bep](https://github.com/bep) [#7489](https://github.com/gohugoio/hugo/issues/7489)
15
16 This is needed to import `react` as a library, e.g.:
17
18 ```
19 {{ $jsx := resources.Get "index.jsx" }}
20 {{ $options := dict "defines" (dict "process.env.NODE_ENV" "\"development\"") }}
21 {{ $js := $jsx | js.Build $options }}
22 ```
23
24