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

Find way to configure to which files plugin applies to #1

Open
inakianduaga opened this issue Dec 22, 2015 · 2 comments
Open

Find way to configure to which files plugin applies to #1

inakianduaga opened this issue Dec 22, 2015 · 2 comments

Comments

@inakianduaga
Copy link
Owner

Check here to see if only, extensions options is available in the plugins .babelrc configuration

https://babeljs.io/docs/usage/require/

@inakianduaga
Copy link
Owner Author

note that the closest .babelrc to each file still applies, and takes precedence over any options you pass in here.

Perhaps dropping a babel rc for the files in question only would solve it, althouhgh we still have to deal with not breaking imports, etc

@inakianduaga
Copy link
Owner Author

Update:

Need to be able to pass configuration to the plugin through .babelrc (if somehow not possible then read from a different file). Options will be:

  • MarkdownIt runtime options: It's a json object or string that is passed to markdown it
  • Inline or regular rendering
  • https://www.npmjs.com/package/minimatch for checking glob matches (we might have to convert the path to a relative path)

And implement these in the plugin.

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

No branches or pull requests

1 participant