From d94763188d797df9b5d3785fa769c31fcf9994b3 Mon Sep 17 00:00:00 2001 From: Helmut Merz Date: Tue, 2 Jul 2024 10:21:32 +0200 Subject: [PATCH] fix import of htmx.org so that extensions can be loaded and registered --- assets/js/main-htmx.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/assets/js/main-htmx.ts b/assets/js/main-htmx.ts index dff8c8b..7fcd56a 100644 --- a/assets/js/main-htmx.ts +++ b/assets/js/main-htmx.ts @@ -1,3 +1,5 @@ -import 'htmx.org' -//import 'htmx-ext-sse' -//import 'htmx-ext-path-params' +import htmx from 'htmx.org/dist/htmx.esm.js' +//console.log(htmx) +window.htmx = htmx +require('htmx-ext-sse') +require('htmx-ext-path-params')