Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions babel.config.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
presets: [["@babel/preset-env", { targets: { node: "current" } }]],
plugins: ["svelte-inline-compile"],
presets: [['@babel/preset-env', { targets: { node: 'current' } }]],
plugins: ['svelte-inline-compile']
};
34 changes: 17 additions & 17 deletions jest.config.cjs
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
module.exports = {
transform: {
"^.+\\.svelte$": ["svelte-jester", { preprocess: true }],
"^.+\\.js$": "babel-jest",
"^.+\\.ts$": "ts-jest",
},
setupFilesAfterEnv: ["@testing-library/jest-dom/extend-expect"],
testEnvironment: "jsdom",
moduleFileExtensions: ["js", "ts", "svelte"],
moduleNameMapper: {
"\\$lib/(.+)$": "<rootDir>/src/lib/$1",
},
globals: {
"ts-jest": {
babelConfig: true,
useESM: true,
}
}
transform: {
'^.+\\.svelte$': ['svelte-jester', { preprocess: true }],
'^.+\\.js$': 'babel-jest',
'^.+\\.ts$': 'ts-jest'
},
setupFilesAfterEnv: ['@testing-library/jest-dom/extend-expect'],
testEnvironment: 'jsdom',
moduleFileExtensions: ['js', 'ts', 'svelte'],
moduleNameMapper: {
'\\$lib/(.+)$': '<rootDir>/src/lib/$1'
},
globals: {
'ts-jest': {
babelConfig: true,
useESM: true
}
}
};
19 changes: 12 additions & 7 deletions mdsvex.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
import rehypeSlug from "rehype-slug";
import rehypeAutolinkHeadings from "rehype-autolink-headings";
import rehypeSlug from 'rehype-slug';
import { defineMDSveXConfig as defineConfig } from 'mdsvex';
import rehypeAutolinkHeadings from 'rehype-autolink-headings';

const config = {
extensions: [".svelte.md", ".md", ".svx"],
const config = defineConfig({
extensions: ['.svelte.md', '.md', '.svx'],

remarkPlugins: [],
rehypePlugins: [rehypeSlug, [rehypeAutolinkHeadings, { behavior: "wrap" }]],
};
smartypants: {
dashes: 'oldschool'
},

remarkPlugins: [],
rehypePlugins: [rehypeSlug, [rehypeAutolinkHeadings, { behavior: 'wrap' }]]
});

export default config;
Loading