Skip to content

Commit

Permalink
make all functions bound
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx authored Nov 27, 2023
1 parent 2162ee8 commit b3f125c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/vite/src/node/server/pluginContainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,11 +295,16 @@ export async function createPluginContainer(
this.load = this.load.bind(this)
this.parse = this.parse.bind(this)
this.resolve = this.resolve.bind(this)
this.getModuleInfo = this.getModuleInfo.bind(this)
this.getModuleIds = this.getModuleIds.bind(this)
this.addWatchFile = this.addWatchFile.bind(this)
this.getWatchFiles = this.getWatchFiles.bind(this)
this.setAssetSource = this.setAssetSource.bind(this)
this.getFileName = this.getFileName.bind(this)
this.warn = this.warn.bind(this)
this.error = this.error.bind(this)
this.debug = this.debug.bind(this)
this.info = this.info.bind(this)
}

parse(code: string, opts: any = {}) {
Expand Down

0 comments on commit b3f125c

Please sign in to comment.