app/assets/js/app.js in coveragebook_components-0.5.2 vs app/assets/js/app.js in coveragebook_components-0.5.3

- old
+ new

@@ -1,10 +1,18 @@ +import packageJSON from "@/package.json" assert { type: "json" }; + +console.info("Initializing Coco JS", packageJSON.version); + +import "container-query-polyfill"; +import "alpine-turbo-drive-adapter"; + +import * as Turbo from "@hotwired/turbo-rails"; import * as ActiveStorage from "@rails/activestorage"; -import "./base/setup"; +import Alpine from "@libs/alpine"; + import "./base/components"; import "./book/components"; import "./app/components"; -document.addEventListener("alpine:initialized", () => { - ActiveStorage.start(); -}); +ActiveStorage.start(); +Alpine.start();