Skip to content

Commit

Permalink
Merge pull request #38 from jacobbowdoin/main
Browse files Browse the repository at this point in the history
Fix @sveltejs/vite-plugin-svelte import on Windows
  • Loading branch information
rixo authored Dec 10, 2021
2 parents fe02d7b + d0e55f0 commit ce73a3f
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 ce73a3f

Please sign in to comment.