Skip to content

Commit

Permalink
chore: replace sass @import with @use to reduce console warnings (#3122)
Browse files Browse the repository at this point in the history
We use sass for our `@kong/design-tokens` support.

This applies another fix for a recent sass upgrade to prevent
`@kong/design-tokens` related console warnings:

Note there are still some deprecation warnings due to our own usage of
sass, but this gets rid of the majority of noise.

Whilst we have to use sass in order to consume `@kong/design-tokens`, a
the better fix for our own code is to get rid of sass usage entirely. So
I hope/plan on doing that in a follow up PR relatively soon. (edit: I
made a follow up issue #3123)

Signed-off-by: John Cowen <[email protected]>
  • Loading branch information
johncowen authored Oct 30, 2024
1 parent 6e601fc commit 183fad5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vite.config.production.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export const config: UserConfigFn = () => {
preprocessorOptions: {
scss: {
additionalData: hoistUseStatements(`
@import "@kong/design-tokens/tokens/scss/variables";
@use "@kong/design-tokens/tokens/scss/variables" as *;
`),
api: 'modern-compiler',
},
Expand Down

0 comments on commit 183fad5

Please sign in to comment.