mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
chore(examples): use JS import in routify
This commit is contained in:
parent
003246dfe9
commit
281a925714
6 changed files with 1101 additions and 57 deletions
|
@ -1,7 +1,6 @@
|
|||
import { createRollupConfigs } from "./scripts/base.config.js";
|
||||
import slug from "remark-slug";
|
||||
import { mdsvex } from "mdsvex";
|
||||
import autoPreprocess from "svelte-preprocess";
|
||||
|
||||
const production = !process.env.ROLLUP_WATCH;
|
||||
|
||||
|
@ -13,10 +12,7 @@ export const config = {
|
|||
production,
|
||||
rollupWrapper: (cfg) => cfg,
|
||||
svelteWrapper: (svelte) => {
|
||||
svelte.preprocess = [
|
||||
autoPreprocess(),
|
||||
mdsvex({ remarkPlugins: [slug], extension: "md" }),
|
||||
];
|
||||
svelte.preprocess = [mdsvex({ remarkPlugins: [slug], extension: "md" })];
|
||||
svelte.extensions = [".svelte", ".md"];
|
||||
return svelte;
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue