From 0cb05d8b2c89c02d698058a71c3ff55e21e2907d Mon Sep 17 00:00:00 2001 From: Tim Gossrau Date: Fri, 18 Sep 2026 14:50:40 +0200 Subject: [PATCH] fix: stop hashing the CSS class names The postcss plugin ran with modules: true, so the bundled stylesheet shipped names like .squirrel-select_select__option__JQTYe while the TypeScript adds the plain select__option. src/index.ts imports the SCSS for its side effect only and never reads the class map, so the two sides could never line up: the injected stylesheet matched nothing and every consumer had to write the whole thing themselves. The names are namespaced with sqs- already and are documented in the README as the public styling API, so hashing them was never wanted here. Verified against the built bundle: it now carries .sqs-dropdown__wrapper, .select, .select__trigger, .select__options, .select__option, .selected and .open, which is what DropdownCreation and constantsAndHelpers assign. Closes #5 --- rollup.config.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rollup.config.mjs b/rollup.config.mjs index 118d07a..ffea249 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -23,7 +23,7 @@ export default { typescript({ tsconfig: './tsconfig.json' }), postcss({ extract: false, - modules: true, + modules: false, use: ['sass'], }), ],