clear the import cache

pull/5370/head
yann300 2 years ago
parent 8e82517208
commit 53e285ae43
  1. 1
      libs/remix-core-plugin/src/lib/compiler-content-imports.ts
  2. 4
      libs/remix-url-resolver/src/resolve.ts

@ -44,6 +44,7 @@ export class CompilerImports extends Plugin {
return {}
}
})
this.on('filePanel', 'setWorkspace', () => this.urlResolver.clearCache())
}
async setToken () {

@ -42,6 +42,10 @@ export class RemixURLResolver {
this.protocol = protocol
}
clearCache () {
this.previouslyHandled = {}
}
/**
* Handle an import statement based on github
* @param root The root of the github import statement

Loading…
Cancel
Save