Skip to content

Commit 034c1d3

Browse files
committedSep 15, 2024·
fix: sass to sass-embedded
1 parent a9534f1 commit 034c1d3

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed
 

‎README.md

-5
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@
88

99
A plugin that automatically creates a type file when using the CSS module type-safely.
1010

11-
## Plans for future revisions
12-
13-
- Improve performance when using the latest API of sass.
14-
- Avoid outputting unnecessary classes when using the latest API of sass.
15-
1611
## Demo
1712

1813
<img src="https://user-images.githubusercontent.com/39351982/138745772-8b218863-fe28-4573-a86a-fc10a7ab1ac7.gif" width="600" />

‎src/css.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ const loadSassPreprocessor = (config: FinalConfig): any => {
118118
if (loadedSassPreprocessor) {
119119
return loadedSassPreprocessor
120120
}
121-
const fallbackPaths = _require.resolve.paths?.('sass') || []
121+
const fallbackPaths = _require.resolve.paths?.('sass-embedded') || []
122122
const resolved = _require.resolve('sass', {
123123
paths: [config.root, ...fallbackPaths],
124124
})

1 commit comments

Comments
 (1)

github-actions[bot] commented on Sep 15, 2024

@github-actions[bot]

Bundled size for the package is listed below:

dist: 46.88 KB

Please sign in to comment.