Feature Request: An open plugin system
fahad19 opened this issue · 2 comments
Right now, we are limited to using a set number of plugins that resides in the babylon repository. If there was a way to develop plugins externally, and still use them with Babylon, it would allow others to contribute more.
Example API
An example could be:
var babylon = require('babylon');
var myCustomPlugin = require('babylon-plugin-custom');
babylon.parse(code, {
plugins: [
'jsx',
'flow',
myCustomPlugin
]
});
Related issues:
I stumbled upon this because I wanted to write a new Babel plugin that parses a new kind of syntax, but, of course, it was throwing errors before I could do anything with the original source.
Input Code
Babylon/Babel Configuration
Expected Behavior
Current Behavior
Your Environment
Hey @fahad19! We really appreciate you taking the time to report an issue. The collaborators
on this project attempt to help as many people as possible, but we're a limited number of volunteers,
so it's possible this won't be addressed swiftly.
If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack
community that typically always has someone willing to help. You can sign-up here
for an invite.
This issue has been moved to babel/babel#6694.