-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- update minor dependencies - update to Vite 6, see: https://vite.dev/blog/announcing-vite6 ## Checklist - [x] A changeset is added with `npx changeset add` if your changes should be released as npm package (because they affect the library usage)
- Loading branch information
1 parent
def00d0
commit cc46754
Showing
7 changed files
with
911 additions
and
1,500 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@sit-onyx/shared": major | ||
--- | ||
|
||
bump minimum required Vite version to `>= 6` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,17 @@ | ||
import vue from "@vitejs/plugin-vue"; | ||
import { deprecations, type Deprecation, type Options } from "sass-embedded"; | ||
import { deprecations, type Deprecation } from "sass-embedded"; | ||
import type { UserConfig } from "vite"; | ||
|
||
type ViteScssOptions = Options<"async"> & { api: "modern-compiler" }; | ||
|
||
export const VITE_BASE_CONFIG = { | ||
plugins: [vue()], | ||
css: { | ||
preprocessorOptions: { | ||
scss: { | ||
api: "modern-compiler", | ||
// error for all warnings | ||
fatalDeprecations: (Object.values(deprecations) as Deprecation[]).filter( | ||
({ status }) => status !== "future", | ||
), | ||
} satisfies ViteScssOptions, | ||
}, | ||
}, | ||
}, | ||
} as const satisfies UserConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.