Skip to content

Commit 7f657d9

Browse files
committed
perf: drop addDependencyTo because is deprecated, close #27
1 parent b12dfbf commit 7f657d9

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

index.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,6 @@ module.exports = function(options) {
2121
subtree.match = tree.match;
2222
content = source.indexOf('include') !== -1? posthtmlInclude(subtree): subtree;
2323

24-
if (
25-
typeof options.addDependencyTo === 'object' &&
26-
typeof options.addDependencyTo.addDependency === 'function'
27-
) {
28-
console.warn([
29-
"addDependencyTo is deprecated in favor of",
30-
"result.messages.dependency; posthtml-loader >= v1.0.1 will",
31-
"automatically add your imported files to webpack's file watcher."
32-
].join("\n"));
33-
options.addDependencyTo.addDependency(src);
34-
}
35-
3624
if (tree.messages) {
3725
tree.messages.push({
3826
type: "dependency",

0 commit comments

Comments
 (0)