diff --git a/src/transformer.js b/src/transformer.js index 050382a..3b04a20 100644 --- a/src/transformer.js +++ b/src/transformer.js @@ -5,7 +5,7 @@ import * as svelte from 'svelte/compiler' import { getSvelteConfig } from './svelteconfig.js' -const dynamicImport = async (filename) => import(pathToFileURL(filename)) +const dynamicImport = async (filename) => import(pathToFileURL(filename).toString()) /** * Jest will only call this method when running in ESM mode.