clear the import cache

pull/3311/head
yann300 2 years ago
parent fb4989fa37
commit a97681c9cd
  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