diff --git a/index.js b/index.js index d78a7e23..4aa5768a 100644 --- a/index.js +++ b/index.js @@ -117,6 +117,12 @@ module.exports = function(source, map) { options.preprocess.filename = options.filename; preprocess(source, options.preprocess).then(processed => { + if (processed.dependencies && this.addDependency) { + for (let dependency of processed.dependencies) { + this.addDependency(dependency); + } + } + let { js, css } = normalize(compile(processed.toString(), options)); if (options.hotReload && !isProduction && !isServer) {