hugo/resources/resource_transformers/js
Bjørn Erik Pedersen 35011bcb26 Add .Defines to js.Build options
This is needed to import `react` as a library, e.g.:

```
{{ $jsx := resources.Get "index.jsx" }}
{{ $options := dict "defines" (dict "process.env.NODE_ENV" "\"development\"") }}
{{ $js := $jsx | js.Build $options }}
```

Fixes #7489
2020-07-17 19:09:09 +02:00
..
build.go Add .Defines to js.Build options 2020-07-17 19:09:09 +02:00
build_test.go Add .Defines to js.Build options 2020-07-17 19:09:09 +02:00