fix for external import

pull/1324/head
filip mertens 3 years ago
parent 2d7fbc8189
commit c07188c654
  1. 9
      libs/remix-core-plugin/src/lib/compiler-content-imports.ts

@ -154,11 +154,10 @@ export class CompilerImports extends Plugin {
resolve(result)
})
}
})
this.importExternal(url, targetPath, (error, content) => {
if (error) return reject(error)
resolve(content)
this.importExternal(url, targetPath, (error, content) => {
if (error) return reject(error)
resolve(content)
})
})
}).catch(error => {
return reject(error)

Loading…
Cancel
Save