|
|
|
@ -88,9 +88,9 @@ module.exports = class CompilerImports extends Plugin { |
|
|
|
|
(error, content, cleanUrl, type, url) => { |
|
|
|
|
if (error) return cb(error) |
|
|
|
|
if (this.fileManager) { |
|
|
|
|
const workspace = this.fileManager.currentFileProvider() |
|
|
|
|
const provider = this.fileManager.currentFileProvider() |
|
|
|
|
const path = targetPath || type + '/' + cleanUrl |
|
|
|
|
if (workspace) workspace.addExternal('.deps/' + path, content, url) |
|
|
|
|
if (provider) provider.addExternal('.deps/' + path, content, url) |
|
|
|
|
} |
|
|
|
|
cb(null, content) |
|
|
|
|
}) |
|
|
|
|