Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support customizing options for walker #68

Open
fengzilong opened this issue Jan 6, 2020 · 2 comments
Open

Support customizing options for walker #68

fengzilong opened this issue Jan 6, 2020 · 2 comments

Comments

@fengzilong
Copy link

fengzilong commented Jan 6, 2020

var walker = new Walker();

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!

@mrjoelkemp
Copy link
Collaborator

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.

@fengzilong
Copy link
Author

I'll send a PR later~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants