Skip to content

Commit d0cfa1f

Browse files
committed
perf(index): add deprecated for addDependencyTo option
1 parent 92e5c52 commit d0cfa1f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ module.exports = function(options) {
1717

1818
if (typeof options.addDependencyTo === 'object' &&
1919
typeof options.addDependencyTo.addDependency === 'function') {
20+
console.warn([
21+
"addDependencyTo is deprecated in favor of",
22+
"result.messages.dependency; posthtml-loader >= v1.0.1 will",
23+
"automatically add your imported files to webpack's file watcher."
24+
].join("\n"));
2025
options.addDependencyTo.addDependency(src);
2126
}
2227
}

0 commit comments

Comments
 (0)