fix content-import

pull/5370/head
Aniket-Engg 3 years ago committed by yann300
parent aefb8d2224
commit 314a51ea0b
  1. 2
      libs/remix-core-plugin/src/lib/compiler-content-imports.ts

@ -1,6 +1,7 @@
'use strict'
import { Plugin } from '@remixproject/engine'
import { RemixURLResolver } from '@remix-project/remix-url-resolver'
const remixTests = require('@remix-project/remix-tests')
const profile = {
name: 'contentImport',
@ -116,6 +117,7 @@ export class CompilerImports extends Plugin {
* @returns {Promise} - string content
*/
async resolveAndSave (url, targetPath) {
if (url.indexOf('remix_tests.sol') !== -1) return remixTests.assertLibCode
try {
const provider = await this.call('fileManager', 'getProviderOf', url)
if (provider) {

Loading…
Cancel
Save