Skip to content
This repository was archived by the owner on Sep 25, 2024. It is now read-only.

Commit ab8e6f0

Browse files
committed
feat: add css module support and refactor utils
This commit introduces support for CSS modules in the Svelte preprocessor. It also includes a significant refactor of the utils module. The alias loading function has been moved to its own file (alias.ts) and the CSS module related functions have been moved to css-module.ts. The old utils.ts file has been removed. The package.json and pnpm-lock.yaml files have been updated to include new dependencies required for the CSS module support.
1 parent 8ce8d4e commit ab8e6f0

File tree

7 files changed

+322
-77
lines changed

7 files changed

+322
-77
lines changed

package.json

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,28 @@
1414
"format": "nr lint --fix",
1515
"typecheck": "tsc --noEmit"
1616
},
17+
"dependencies": {
18+
"await-to-js": "^3.0.0",
19+
"camelcase-keys": "^9.1.3",
20+
"knitwork": "^1.1.0",
21+
"lightningcss": "^1.25.1",
22+
"magic-string": "^0.30.11",
23+
"mlly": "^1.7.1",
24+
"svelte": "5.0.0-next.210",
25+
"uint8array-extras": "^1.4.0",
26+
"unconfig": "^0.5.5",
27+
"zimmerframe": "^1.1.2"
28+
},
1729
"devDependencies": {
1830
"@antfu/ni": "^0.22.0",
1931
"@ryoppippi/eslint-config": "npm:@jsr/ryoppippi__eslint-config",
2032
"@sveltejs/kit": "^2.5.20",
21-
"camelcase-keys": "^9.1.3",
33+
"@types/node": "^22.1.0",
2234
"eslint": "^9.8.0",
2335
"eslint-plugin-format": "^0.1.2",
2436
"eslint-plugin-svelte": "^2.43.0",
25-
"lightningcss": "^1.25.1",
2637
"mkdist": "^1.5.4",
27-
"svelte": "5.0.0-next.210",
2838
"typescript": "^5.5.4",
29-
"unconfig": "^0.5.5",
3039
"vite": "^5.3.5",
3140
"vitest": "^2.0.5"
3241
}

pnpm-lock.yaml

Lines changed: 94 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)