From c07188c654df90e61ac27c86eec3c0abd3ff24d2 Mon Sep 17 00:00:00 2001 From: filip mertens Date: Thu, 1 Jul 2021 11:59:03 +0200 Subject: [PATCH] fix for external import --- .../src/lib/compiler-content-imports.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/libs/remix-core-plugin/src/lib/compiler-content-imports.ts b/libs/remix-core-plugin/src/lib/compiler-content-imports.ts index a83d2ddbc9..ea4eae6958 100644 --- a/libs/remix-core-plugin/src/lib/compiler-content-imports.ts +++ b/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)