mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-19 03:49:34 +00:00
feat!: change package requirements
- Configure as ES module - Add svelte as peerDependency - add Vite and vite-preprocess to inline imported SCSS
This commit is contained in:
parent
7e4fd91bd3
commit
e75508014c
288 changed files with 454 additions and 38 deletions
16
svelte.config.js
Normal file
16
svelte.config.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
import { vitePreprocess as preprocess } from "@sveltejs/vite-plugin-svelte";
|
||||
|
||||
const config = {
|
||||
package: {
|
||||
source: "src/carbon-components-svelte",
|
||||
},
|
||||
preprocess: [
|
||||
preprocess({
|
||||
scss: {
|
||||
prependData: '@use "src/variables.scss" as *;',
|
||||
},
|
||||
}),
|
||||
],
|
||||
};
|
||||
|
||||
export default config;
|
Loading…
Add table
Add a link
Reference in a new issue