node-precinct
node-precinct copied to clipboard
Support customizing options for walker
https://github.com/dependents/node-precinct/blob/860d577c2f444de6f6f731d879907c41958eea8a/index.js#L45
In my case, I would like to use a walker with custom options
var walker = new Walker( {
plugins: [
'flow',
'classPrivateProperties',
'nullishCoalescingOperator',
]
} )
how about adding walkerOptions
in second parameter, e.g.
precinct( content, { walkerOptions: {} } )
and also thanks for your great work!
Hey! Thanks for contributing. Feel free to open a PR with the change and a test. Sounds like a good point of extension. I'm happy to review contributions.
I'll send a PR later~