We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e41804b + 265e6a7 commit a603db6Copy full SHA for a603db6
index.js
@@ -117,6 +117,12 @@ module.exports = function(source, map) {
117
options.preprocess.filename = options.filename;
118
119
preprocess(source, options.preprocess).then(processed => {
120
+ if (processed.dependencies && this.addDependency) {
121
+ for (let dependency of processed.dependencies) {
122
+ this.addDependency(dependency);
123
+ }
124
125
+
126
let { js, css } = normalize(compile(processed.toString(), options));
127
128
if (options.hotReload && !isProduction && !isServer) {
0 commit comments