Skip to content

Commit

Permalink
Fix @sveltejs/vite-plugin-svelte import on Windows by using importAbs…
Browse files Browse the repository at this point in the history
…olute
  • Loading branch information
jacob-8 committed Aug 12, 2021
1 parent 68c6e07 commit d0e55f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/svench/lib/svenchify.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as fs from 'fs'
import * as path from 'path'

import { pipeAsync, identity } from './util.js'
import { pipeAsync, identity, importAbsolute } from './util.js'
import { parseSvenchOptions } from './config.js'
import { createPluginParts } from './plugin-shared.js'
import { maybeDump } from './dump.js'
Expand Down Expand Up @@ -31,7 +31,7 @@ const importSveltePluginModule = async (sveltePlugin, cwd, isModule) => {
basedir: cwd,
packageFilter: pkg => ({ ...pkg, main: pkg.module || pkg.main }),
})
return await import(sveltePluginFile)
return await importAbsolute(sveltePluginFile)
}

const mergeExtensions = (...sources) => [
Expand Down

0 comments on commit d0e55f0

Please sign in to comment.