File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,9 @@ const srcset = require('srcset')
2
2
const postcss = require ( 'postcss' )
3
3
const merge = require ( 'lodash.merge' )
4
4
const isUrl = require ( 'is-url-superb' )
5
+ const { walk} = require ( 'posthtml/lib/api' )
5
6
const postcssBaseUrl = require ( './plugins/postcss-baseurl.js' )
7
+
6
8
const defaultTags = {
7
9
a : {
8
10
href : true ,
@@ -67,6 +69,8 @@ module.exports = (options = {}) => tree => {
67
69
options . inlineCss = options . inlineCss || false
68
70
options . tags = options . allTags ? merge ( defaultTags , options . tags ) : options . tags || { }
69
71
72
+ tree . walk = tree . walk || walk
73
+
70
74
const process = node => {
71
75
// Skip if `url` was not provided
72
76
if ( options . url && ( typeof options . url !== 'string' || options . url === '' ) ) {
You can’t perform that action at this time.
0 commit comments