Skip to content
This repository has been archived by the owner on May 19, 2018. It is now read-only.

Feature Request: An open plugin system #500

Closed
fahad19 opened this issue Apr 29, 2017 · 2 comments
Closed

Feature Request: An open plugin system #500

fahad19 opened this issue Apr 29, 2017 · 2 comments
Labels

Comments

@fahad19
Copy link

fahad19 commented Apr 29, 2017

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

@hzoo
Copy link
Member

hzoo commented Apr 29, 2017

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.

@babel-bot
Copy link

This issue has been moved to babel/babel#6694.

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

No branches or pull requests

3 participants