Skip to content

Commit e8dabfc

Browse files
naivefunclaude
andcommitted
Fix CSS modules build configuration
- Change tsup loader from 'css' to 'local-css' for proper CSS modules support - CSS classes now properly hashed and mapped (e.g. 'root' -> 'o') - Fixes broken styling in published package 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 5b62909 commit e8dabfc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "handtree",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "A React tree component for hand-crafted hierarchical interfaces",
55
"main": "dist/index.js",
66
"module": "dist/index.mjs",

tsup.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default defineConfig({
1212
esbuildOptions(options) {
1313
options.loader = {
1414
...options.loader,
15-
'.scss': 'css',
15+
'.scss': 'local-css',
1616
}
1717
},
1818
})

0 commit comments

Comments
 (0)