We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3dd5ad3 commit 4d662deCopy full SHA for 4d662de
packages/vite-plugin-svelte/src/utils/load-svelte-config.ts
@@ -27,7 +27,7 @@ export async function loadSvelteConfig(
27
if (configFile) {
28
let err;
29
// try to use dynamic import for svelte.config.js first
30
- if (configFile.endsWith('.js') || configFile.endsWith('.mjs')) {
+ if (configFile.endsWith('.js') || configFile.endsWith('.mjs') || configFile.endsWith('.cjs')) {
31
try {
32
const result = await dynamicImportDefault(pathToFileURL(configFile).href);
33
if (result != null) {
0 commit comments