Skip to content

Commit

Permalink
fix: forward options when calling this.resolve (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
pcattori authored Dec 7, 2023
1 parent 919cf87 commit d496ea9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,10 @@ export default (opts: PluginOptions = {}): Plugin => {
}
})
},
async resolveId(id, importer) {
async resolveId(id, importer, options) {
if (importer && !relativeImportRE.test(id) && !isAbsolute(id)) {
const viteResolve: ViteResolve = async (id, importer) =>
(await this.resolve(id, importer, { skipSelf: true }))?.id
(await this.resolve(id, importer, options))?.id

let prevProjectDir: string | undefined
let projectDir = dirname(importer)
Expand Down

0 comments on commit d496ea9

Please sign in to comment.