Skip to content

Commit

Permalink
Update to AlpineJS v3.13.2
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Nov 10, 2023
1 parent 9446184 commit 830d00b
Show file tree
Hide file tree
Showing 124 changed files with 20,438 additions and 7,886 deletions.
7 changes: 7 additions & 0 deletions alpinejs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@ import persist from 'jslibs/alpinejs/v3/persist/dist/module.esm.js';
Alpine.start();

})();
```

Note that AlpineJS now requires ES target 2017 or later to work:

```handlebars
{{ $params := dict }}
{{ $opts := dict "sourceMap" $sourceMap "minify" (ne hugo.Environment "development") "target" "es2017" "params" $params }}
{{ $js := $js | js.Build $opts }}
```

Note that this works great in combination with [Turbo](https://github.com/gohugoio/hugo-mod-jslibs/tree/master/turbo), but you would need to set up something like [these listeners](https://gist.github.com/bep/a9809f0cb119e44e8ddbe37dd1e58b50) to make it work properly.
Loading

0 comments on commit 830d00b

Please sign in to comment.