Skip to content

Commit

Permalink
fix sass package consumption via @use
Browse files Browse the repository at this point in the history
since `@import` is deprecated (https://sass-lang.com/blog/import-is-deprecated/), `@use` should be used (https://sass-lang.com/documentation/at-rules/use/)

in order to allow importing from a nodejs package via `@use` we must annotate the `exports` field appropriately, see https://sass-lang.com/documentation/at-rules/use/#node-js-package-importer
  • Loading branch information
schiller-manuel committed Nov 4, 2024
1 parent de8784e commit 6ba462f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,12 @@
"./package.json": "./package.json",
"./css/styles.css": "./css/styles.css",
"./css/compact_styles.css": "./css/compact_styles.css",
"./css/styles.scss": "./css/styles.scss",
"./css/compact_styles.scss": "./css/compact_styles.scss"
"./css/styles.scss": {
"sass": "./css/styles.scss"
},
"./css/compact_styles.scss": {
"sass": "./css/compact_styles.scss"
}
},
"main": "./cjs/index.js",
"module": "./esm/index.js",
Expand Down

0 comments on commit 6ba462f

Please sign in to comment.