From 66b32eaad0c8be7daa7ade032ff1490f8bf19de8 Mon Sep 17 00:00:00 2001 From: Hugo Alliaume Date: Fri, 20 Mar 2026 08:33:35 +0100 Subject: [PATCH] Update tsdown & use @tsdown/css MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This update simplifies the tsdown configuration, we do not need our custom plugin to minify CSS anymore (replaced by `css.minify = true`), and same for our hooks that rename the built CSS (replaced by `css.fileName`) 😍 --- assets/dist/controllers.js | 2 +- assets/dist/loader.d.ts | 2 +- assets/dist/loader.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/dist/controllers.js b/assets/dist/controllers.js index abe76fd..0b67e88 100644 --- a/assets/dist/controllers.js +++ b/assets/dist/controllers.js @@ -1,4 +1,4 @@ const eagerControllers = {}; const lazyControllers = {}; const isApplicationDebug = false; -export { eagerControllers, isApplicationDebug, lazyControllers }; \ No newline at end of file +export { eagerControllers, isApplicationDebug, lazyControllers }; diff --git a/assets/dist/loader.d.ts b/assets/dist/loader.d.ts index 37d9541..2244884 100644 --- a/assets/dist/loader.d.ts +++ b/assets/dist/loader.d.ts @@ -1,5 +1,5 @@ -import { EagerControllersCollection, LazyControllersCollection } from "./controllers.js"; import { Application } from "@hotwired/stimulus"; +import { EagerControllersCollection, LazyControllersCollection } from "./controllers.js"; declare const loadControllers: (application: Application, eagerControllers: EagerControllersCollection, lazyControllers: LazyControllersCollection) => void; declare const startStimulusApp: () => Application; export { loadControllers, startStimulusApp }; \ No newline at end of file diff --git a/assets/dist/loader.js b/assets/dist/loader.js index dc7b86f..35f4d12 100644 --- a/assets/dist/loader.js +++ b/assets/dist/loader.js @@ -1,5 +1,5 @@ -import { eagerControllers, isApplicationDebug, lazyControllers } from "./controllers.js"; import { Application } from "@hotwired/stimulus"; +import { eagerControllers, isApplicationDebug, lazyControllers } from "./controllers.js"; const controllerAttribute = "data-controller"; const loadControllers = (application, eagerControllers, lazyControllers) => { for (const name in eagerControllers) registerController(name, eagerControllers[name], application); @@ -67,4 +67,4 @@ function extractControllerNamesFrom(element) { function canRegisterController(name, application) { return !application.router.modulesByIdentifier.has(name); } -export { loadControllers, startStimulusApp }; \ No newline at end of file +export { loadControllers, startStimulusApp };